require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 20);
- define('SCHEMA_VERSION', 74);
+ define('SCHEMA_VERSION', 75);
if (!file_exists("config.php")) {
print "<b>Fatal Error</b>: You forgot to copy
last_update_started 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,
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 DEFAULT CHARSET=UTF8;
-insert into ttrss_version values (74);
+insert into ttrss_version values (75);
create table ttrss_enclosures (id integer primary key auto_increment,
content_url text not null,
last_update_started 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,
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 (74);
+insert into ttrss_version values (75);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
--- /dev/null
+begin;
+
+alter table ttrss_feeds add column order_id integer;
+update ttrss_feeds set order_id = 0;
+alter table ttrss_feeds change order_id order_id integer not null;
+alter table ttrss_feeds alter column order_id set default 0;
+
+update ttrss_version set schema_version = 75;
+
+commit;
--- /dev/null
+begin;
+
+alter table ttrss_feeds add column order_id integer;
+update ttrss_feeds set order_id = 0;
+alter table ttrss_feeds alter column order_id set not null;
+alter table ttrss_feeds alter column order_id set default 0;
+
+update ttrss_version set schema_version = 75;
+
+commit;