require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 14);
- define('SCHEMA_VERSION', 30);
+ define('SCHEMA_VERSION', 31);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
auth_pass_encrypted boolean not null default false,
last_viewed datetime default null,
last_update_started datetime default null,
+ update_method integer not null default 0,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
index(cat_id),
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (30);
+insert into ttrss_version values (31);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
cache_images boolean not null default false,
last_viewed timestamp default null,
last_update_started timestamp default null,
+ update_method integer not null default 0,
auth_pass_encrypted boolean not null default false);
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (30);
+insert into ttrss_version values (31);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
--- /dev/null
+alter table ttrss_feeds add column update_method integer;
+update ttrss_feeds set update_method = 0;
+alter table ttrss_feeds change update_method update_method integer not null;
+alter table ttrss_feeds alter column update_method set default 0;
+
+update ttrss_version set schema_version = 31;
--- /dev/null
+alter table ttrss_feeds add column update_method integer;
+update ttrss_feeds set update_method = 0;
+alter table ttrss_feeds alter column update_method set not null;
+alter table ttrss_feeds alter column update_method set default 0;
+
+update ttrss_version set schema_version = 31;