schema: add ttrss_feeds.last_successful_update

master
Andrew Dolgov 2 years ago
parent 97d7e5a42a
commit de22464ea8
  1. 2
      include/functions.php
  2. 3
      schema/ttrss_schema_mysql.sql
  3. 3
      schema/ttrss_schema_pgsql.sql
  4. 4
      schema/versions/mysql/140.sql
  5. 4
      schema/versions/pgsql/140.sql

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

@ -130,6 +130,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
auth_pass_encrypted boolean not null default false,
last_viewed datetime default null,
last_update_started datetime default null,
last_successful_update datetime default null,
always_display_enclosures boolean not null default false,
update_method 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;
insert into ttrss_version values (139);
insert into ttrss_version values (140);
create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null,

@ -98,6 +98,7 @@ create table ttrss_feeds (id serial not null primary key,
cache_content boolean not null default false,
last_viewed timestamp default null,
last_update_started timestamp default null,
last_successful_update timestamp default null,
update_method integer not null default 0,
always_display_enclosures boolean not null default false,
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);
insert into ttrss_version values (139);
insert into ttrss_version values (140);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,

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

@ -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;
Loading…
Cancel
Save