From e02bd34d265f2933575a80a06a3cd75c8f9195fd Mon Sep 17 00:00:00 2001 From: Chimo Date: Sun, 8 Feb 2015 14:47:03 -0500 Subject: [PATCH] Populate 'created' property on attention The 'created' column in attention SQL table has NOT NULL restriction. --- classes/Attention.php | 1 + 1 file changed, 1 insertion(+) diff --git a/classes/Attention.php b/classes/Attention.php index d152ff892a..ef0dcb1df7 100644 --- a/classes/Attention.php +++ b/classes/Attention.php @@ -56,6 +56,7 @@ class Attention extends Managed_DataObject $att->notice_id = $notice->getID(); $att->profile_id = $profile->getID(); $att->reason = $reason; + $att->created = common_sql_now(); $result = $att->insert(); if ($result === false) {