From ceb30ba49d300d53a0693aba7e1f0e4c523aeedc Mon Sep 17 00:00:00 2001
From: Andrew Dolgov <fox@bah.spb.su>
Date: Sun, 18 Jan 2009 09:28:42 +0100
Subject: new style labels (bump schema)

---
 schema/versions/mysql/51.sql | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 schema/versions/mysql/51.sql

(limited to 'schema/versions/mysql/51.sql')

diff --git a/schema/versions/mysql/51.sql b/schema/versions/mysql/51.sql
new file mode 100644
index 000000000..46d0543ff
--- /dev/null
+++ b/schema/versions/mysql/51.sql
@@ -0,0 +1,16 @@
+create table ttrss_labels2 (id integer not null primary key auto_increment, 
+	owner_uid integer not null,
+	caption varchar(250) not null,
+	foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE
+) TYPE=InnoDB;
+
+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,
+	foreign key (article_id) references ttrss_entries(id) ON DELETE CASCADE
+) TYPE=InnoDB;
+
+insert into ttrss_filter_actions (id,name,description) values (7, 'label', 
+	'Assign label');
+
+update ttrss_version set schema_version = 51;
-- 
cgit v1.2.3

