summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-01-18 11:46:28 +0100
committerAndrew Dolgov <[email protected]>2009-01-18 11:46:28 +0100
commitf8bfb81fd19deb12afb1ddbe09b0b5523e615292 (patch)
treea8db3e7fcf0e281f35f69c15d58fccecf2702756 /schema
parent69d47936abc6a78a4440a5118377c49df91d3b6a (diff)
schema fixes
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_mysql.sql8
-rw-r--r--schema/ttrss_schema_pgsql.sql6
2 files changed, 14 insertions, 0 deletions
diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql
index 9bfb0a075..8ba72e8f4 100644
--- a/schema/ttrss_schema_mysql.sql
+++ b/schema/ttrss_schema_mysql.sql
@@ -1,6 +1,8 @@
-- SET NAMES utf8;
-- SET CHARACTER SET utf8;
+drop table if exists ttrss_user_labels2;
+drop table if exists ttrss_labels2;
drop table if exists ttrss_feedbrowser_cache;
drop table if exists ttrss_version;
drop table if exists ttrss_labels;
@@ -398,6 +400,12 @@ create table ttrss_labels2 (id integer not null primary key auto_increment,
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE
) TYPE=InnoDB;
+INSERT INTO ttrss_labels2 (owner_uid, caption) VALUES (1, 'All Articles');
+
+INSERT INTO ttrss_filters (owner_uid, feed_id, filter_type, reg_exp, enabled,
+ action_id, action_param, filter_param)
+ VALUES (1, NULL, 1, '.', true, 7, 'All Articles', 'before');
+
create table ttrss_user_labels2 (label_id integer not null,
article_id integer not null,
foreign key (label_id) references ttrss_labels2(id) ON DELETE CASCADE,
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index 9778a044f..6c7f9d98a 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -368,6 +368,12 @@ create table ttrss_labels2 (id serial not null primary key,
caption varchar(250) not null
);
+INSERT INTO ttrss_labels2 (owner_uid, caption) VALUES (1, 'All Articles');
+
+INSERT INTO ttrss_filters (owner_uid, feed_id, filter_type, reg_exp, enabled,
+ action_id, action_param, filter_param)
+ VALUES (1, NULL, 1, '.', true, 7, 'All Articles', 'before');
+
create table ttrss_user_labels2 (
label_id integer not null references ttrss_labels2(id) ON DELETE CASCADE,
article_id integer not null references ttrss_entries(id) ON DELETE CASCADE