add ttrss_feeds.last_unconditional (schema bump)

This commit is contained in:
Andrew Dolgov 2017-11-30 12:55:50 +03:00
parent 1a4ff852de
commit ecd2e414bd
5 changed files with 19 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<?php
define('EXPECTED_CONFIG_VERSION', 26);
define('SCHEMA_VERSION', 132);
define('SCHEMA_VERSION', 133);
define('LABEL_BASE_INDEX', -1024);
define('PLUGIN_FEED_BASE_INDEX', -128);

View File

@ -102,6 +102,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
update_interval integer not null default 0,
purge_interval integer not null default 0,
last_updated datetime default null,
last_unconditional datetime default null,
last_error varchar(250) not null default '',
last_modified varchar(250) not null default '',
favicon_avg_color varchar(11) default null,
@ -283,7 +284,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (132);
insert into ttrss_version values (133);
create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null,

View File

@ -72,6 +72,7 @@ create table ttrss_feeds (id serial not null primary key,
update_interval integer not null default 0,
purge_interval integer not null default 0,
last_updated timestamp default null,
last_unconditional timestamp default null,
last_error text not null default '',
last_modified text not null default '',
favicon_avg_color varchar(11) default null,
@ -265,7 +266,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
create table ttrss_version (schema_version int not null);
insert into ttrss_version values (132);
insert into ttrss_version values (133);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,

View File

@ -0,0 +1,7 @@
begin;
alter table ttrss_feeds add column last_unconditional datetime null;
UPDATE ttrss_version SET schema_version = 133;
commit;

View File

@ -0,0 +1,7 @@
begin;
alter table ttrss_feeds add column last_unconditional timestamp null;
UPDATE ttrss_version SET schema_version = 133;
commit;