require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 17);
- define('SCHEMA_VERSION', 46);
+ define('SCHEMA_VERSION', 47);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
feed_id integer default null,
filter_type integer not null,
reg_exp varchar(250) not null,
+ filter_param varchar(250) not null default '',
inverse bool not null default false,
enabled bool not null default true,
action_id integer not null default 1,
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (46);
+insert into ttrss_version values (47);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
feed_id integer references ttrss_feeds(id) on delete cascade default null,
filter_type integer not null references ttrss_filter_types(id),
reg_exp varchar(250) not null,
+ filter_param varchar(250) not null default '',
enabled boolean not null default true,
inverse boolean not null default false,
action_id integer not null default 1 references ttrss_filter_actions(id) on delete cascade,
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (46);
+insert into ttrss_version values (47);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
--- /dev/null
+alter table ttrss_filters add column filter_param varchar(200);
+
+update ttrss_filters set filter_param = '';
+
+alter table ttrss_filters change filter_param filter_param varchar(200) not null;
+alter table ttrss_filters alter column filter_param set default '';
+
+update ttrss_version set schema_version = 47;
+
--- /dev/null
+begin;
+
+alter table ttrss_filters add column filter_param varchar(200);
+
+update ttrss_filters set filter_param = '';
+
+alter table ttrss_filters alter column filter_param set not null;
+alter table ttrss_filters alter column filter_param set default '';
+
+update ttrss_version set schema_version = 47;
+
+commit;