]> git.wh0rd.org Git - tt-rss.git/commitdiff
update schema 128 to properly set ttrss_feeds.last_updated default value to NULL
authorAndrew Dolgov <noreply@fakecake.org>
Wed, 17 Aug 2016 06:43:22 +0000 (09:43 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 17 Aug 2016 06:43:22 +0000 (09:43 +0300)
schema/versions/mysql/128.sql

index 0a4d7ab7c0a1ff4f1aa91b2c6ed0aeacc4198048..281379bb095f010a358968b7a3174bf1f6cfda11 100644 (file)
@@ -1,5 +1,8 @@
 BEGIN;
 
+update ttrss_feeds set last_updated = NULL;
+alter table ttrss_feeds modify column last_updated datetime DEFAULT NULL;
+
 alter table ttrss_feeds add column feed_language varchar(100);
 update ttrss_feeds set feed_language = '';
 alter table ttrss_feeds change feed_language feed_language varchar(100) not null;