init_collapsable_feedlist(getInitParam("theme"));
+ Sortable.create('feedList');
+
} catch (e) {
exception_error("feedlist/init", e);
}
print "</span>";
- print "</li>";
+ //print "</li>";
print "<ul class=\"feedCatList\" id=\"FCATLIST-$cat_id\" style='$holder_style'>";
require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 17);
- define('SCHEMA_VERSION', 40);
+ define('SCHEMA_VERSION', 41);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
owner_uid integer not null,
title varchar(200) not null,
collapsed bool not null default false,
+ order_id integer not null default 0,
index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB;
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (40);
+insert into ttrss_version values (41);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
create table ttrss_feed_categories(id serial not null primary key,
owner_uid integer not null references ttrss_users(id) on delete cascade,
collapsed boolean not null default false,
+ order_id integer not null default 0,
title varchar(200) not null);
create table ttrss_feeds (id serial not null primary key,
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (40);
+insert into ttrss_version values (41);
create table ttrss_enclosures (id serial not null primary key,
content_url text not null,
--- /dev/null
+alter table ttrss_feed_categories add column order_id integer;
+update ttrss_feed_categories set order_id = 0;
+alter table ttrss_feed_categories change order_id order_id integer not null;
+alter table ttrss_feed_categories alter column order_id set default 0;
+
+update ttrss_version set schema_version = 41;
--- /dev/null
+alter table ttrss_feed_categories add column order_id int;
+update ttrss_feed_categories set order_id = 0;
+alter table ttrss_feed_categories alter column order_id set not null;
+alter table ttrss_feed_categories alter column order_id set default 0;
+
+update ttrss_version set schema_version = 41;