Browse Source

update schema 128 to properly set ttrss_feeds.last_updated default value to NULL

Andrew Dolgov 3 years ago
parent
commit
539f6ee6cd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      schema/versions/mysql/128.sql

+ 3 - 0
schema/versions/mysql/128.sql

@@ -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;