From: Chimo Date: Sat, 7 Feb 2015 16:08:03 +0000 (-0500) Subject: Remove NOT NULL restriction on FeedSub last_update X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=56c0cd621aa1511bf498d1f8de60a7a85a3650b4;p=quix0rs-gnu-social.git Remove NOT NULL restriction on FeedSub last_update Fixes an issue where INSERTs fail if MySQL/MariaDB runs in "strict mode". --- diff --git a/plugins/OStatus/classes/FeedSub.php b/plugins/OStatus/classes/FeedSub.php index 57c056f5fb..adc1aa11be 100644 --- a/plugins/OStatus/classes/FeedSub.php +++ b/plugins/OStatus/classes/FeedSub.php @@ -86,7 +86,7 @@ class FeedSub extends Managed_DataObject 'sub_state' => array('type' => 'enum("subscribe","active","unsubscribe","inactive","nohub")', 'not null' => true, 'description' => 'subscription state'), 'sub_start' => array('type' => 'datetime', 'description' => 'subscription start'), 'sub_end' => array('type' => 'datetime', 'description' => 'subscription end'), - 'last_update' => array('type' => 'datetime', 'not null' => true, 'description' => 'when this record was last updated'), + 'last_update' => array('type' => 'datetime', 'description' => 'when this record was last updated'), 'created' => array('type' => 'datetime', 'not null' => true, 'description' => 'date this record was created'), 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'), ),