feed_url varchar(250) unique not null,
icon_url varchar(250) not null default '',
update_interval integer not null default 0,
+ purge_interval integer not null default 0,
last_updated datetime default '',
last_error text not null default '',
site_url varchar(250) not null default '') TYPE=InnoDB;
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (1);
+insert into ttrss_version values (2);
feed_url varchar(250) unique not null,
icon_url varchar(250) not null default '',
update_interval integer not null default 0,
+ purge_interval integer not null default 0,
last_updated timestamp default null,
last_error text not null default '',
site_url varchar(250) not null default '');
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (1);
+insert into ttrss_version values (2);
--- /dev/null
+begin;
+
+alter table ttrss_feeds add column purge_interval integer;
+
+update ttrss_feeds set purge_interval = 0;
+
+alter table ttrss_feeds alter column purge_interval set not null;
+alter table ttrss_feeds alter column purge_interval set default 0;
+
+update ttrss_version set schema_version = 2;
+
+commit;