From 56c0cd621aa1511bf498d1f8de60a7a85a3650b4 Mon Sep 17 00:00:00 2001 From: Chimo Date: Sat, 7 Feb 2015 11:08:03 -0500 Subject: [PATCH] Remove NOT NULL restriction on FeedSub last_update Fixes an issue where INSERTs fail if MySQL/MariaDB runs in "strict mode". --- plugins/OStatus/classes/FeedSub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'), ),