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

This commit is contained in:
Andrew Dolgov 2016-08-17 09:43:22 +03:00
parent 5cbd1fe8e4
commit 539f6ee6cd
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
BEGIN; 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); alter table ttrss_feeds add column feed_language varchar(100);
update ttrss_feeds set feed_language = ''; update ttrss_feeds set feed_language = '';
alter table ttrss_feeds change feed_language feed_language varchar(100) not null; alter table ttrss_feeds change feed_language feed_language varchar(100) not null;