From: Andrew Dolgov Date: Sun, 18 Jan 2009 15:42:07 +0000 (+0100) Subject: schema: remove ttrss_labels X-Git-Tag: 1.3.0~70 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f054b5475b2a5eac627c20084f85eedb6936f060;p=tt-rss.git schema: remove ttrss_labels --- diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 11b2106e..c07782e3 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -213,19 +213,6 @@ create table ttrss_filters (id integer not null primary key auto_increment, index (action_id), foreign key (action_id) references ttrss_filter_actions(id) ON DELETE CASCADE) TYPE=InnoDB; -create table ttrss_labels (id integer not null primary key auto_increment, - owner_uid integer not null, - sql_exp text not null, - description varchar(250) not null, - index (owner_uid), - foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE) TYPE=InnoDB; - -insert into ttrss_labels (owner_uid,sql_exp,description) values (1,'unread = true', - 'Unread articles'); - -insert into ttrss_labels (owner_uid,sql_exp,description) values (1, - 'last_read is null and unread = false', 'Updated articles'); - create table ttrss_tags (id integer primary key auto_increment, owner_uid integer not null, tag_name varchar(250) not null, diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index b2ea2a59..8646632d 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -191,19 +191,6 @@ create table ttrss_filters (id serial not null primary key, action_id integer not null default 1 references ttrss_filter_actions(id) on delete cascade, action_param varchar(250) not null default ''); -create table ttrss_labels (id serial not null primary key, - owner_uid integer not null references ttrss_users(id) on delete cascade, - sql_exp text not null, - description varchar(250) not null); - -create index ttrss_labels_owner_uid_index on ttrss_labels(owner_uid); - -insert into ttrss_labels (owner_uid,sql_exp,description) values (1,'unread = true', - 'Unread articles'); - -insert into ttrss_labels (owner_uid,sql_exp,description) values (1, - 'last_read is null and unread = false', 'Updated articles'); - create table ttrss_tags (id serial not null primary key, tag_name varchar(250) not null, owner_uid integer not null references ttrss_users(id) on delete cascade,