schema: add ttrss_feeds.last_successful_update

This commit is contained in:
Andrew Dolgov 2020-09-28 14:14:06 +03:00
parent 97d7e5a42a
commit de22464ea8
5 changed files with 13 additions and 3 deletions

View File

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

View File

@ -130,6 +130,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
auth_pass_encrypted boolean not null default false, auth_pass_encrypted boolean not null default false,
last_viewed datetime default null, last_viewed datetime default null,
last_update_started datetime default null, last_update_started datetime default null,
last_successful_update datetime default null,
always_display_enclosures boolean not null default false, always_display_enclosures boolean not null default false,
update_method integer not null default 0, update_method integer not null default 0,
order_id integer not null default 0, order_id integer not null default 0,
@ -296,7 +297,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; create table ttrss_version (schema_version int not null) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
insert into ttrss_version values (139); insert into ttrss_version values (140);
create table ttrss_enclosures (id integer primary key auto_increment, create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null, content_url text not null,

View File

@ -98,6 +98,7 @@ create table ttrss_feeds (id serial not null primary key,
cache_content boolean not null default false, cache_content boolean not null default false,
last_viewed timestamp default null, last_viewed timestamp default null,
last_update_started timestamp default null, last_update_started timestamp default null,
last_successful_update timestamp default null,
update_method integer not null default 0, update_method integer not null default 0,
always_display_enclosures boolean not null default false, always_display_enclosures boolean not null default false,
order_id integer not null default 0, order_id integer not null default 0,
@ -278,7 +279,7 @@ create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id);
create table ttrss_version (schema_version int not null); create table ttrss_version (schema_version int not null);
insert into ttrss_version values (139); insert into ttrss_version values (140);
create table ttrss_enclosures (id serial not null primary key, create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,

View File

@ -0,0 +1,4 @@
alter table ttrss_feeds add column last_successful_update datetime;
alter table ttrss_feeds alter column last_successful_update set default null;
update ttrss_version set schema_version = 140;

View File

@ -0,0 +1,4 @@
alter table ttrss_feeds add column last_successful_update timestamp;
alter table ttrss_feeds alter column last_successful_update set default null;
update ttrss_version set schema_version = 140;