aboutsummaryrefslogtreecommitdiffhomepage
path: root/install/mysql.sql
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-12-06 15:16:02 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-12-06 15:16:02 +0100
commit6bf4702608e4f32d66a9840ec93461f653315a76 (patch)
tree3833aabf05d58152c08e01e05513d0eed4f0244a /install/mysql.sql
parentf014856424c3a1d790a7de3ca6b75568b417137f (diff)
downloadwallabag-6bf4702608e4f32d66a9840ec93461f653315a76.tar.gz
wallabag-6bf4702608e4f32d66a9840ec93461f653315a76.tar.zst
wallabag-6bf4702608e4f32d66a9840ec93461f653315a76.zip
[add] tags and tags_entries for mysql & postgresql
Diffstat (limited to 'install/mysql.sql')
-rw-r--r--install/mysql.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/install/mysql.sql b/install/mysql.sql
index 9b01e32c..66c4bb31 100644
--- a/install/mysql.sql
+++ b/install/mysql.sql
@@ -31,4 +31,19 @@ CREATE TABLE IF NOT EXISTS `users_config` (
31 `name` varchar(255) NOT NULL, 31 `name` varchar(255) NOT NULL,
32 `value` varchar(255) NOT NULL, 32 `value` varchar(255) NOT NULL,
33 PRIMARY KEY (`id`) 33 PRIMARY KEY (`id`)
34) ENGINE=InnoDB DEFAULT CHARSET=utf8;
35
36CREATE TABLE tags (
37 `id` int(11) NOT NULL AUTO_INCREMENT,
38 `value` varchar(255) NOT NULL,
39 PRIMARY KEY (`id`)
40) ENGINE=InnoDB DEFAULT CHARSET=utf8;
41
42CREATE TABLE tags_entries (
43 `id` int(11) NOT NULL AUTO_INCREMENT,
44 `entry_id` int(11) NOT NULL,
45 `tag_id` int(11) NOT NULL,
46 FOREIGN KEY(entry_id) REFERENCES entries(id) ON DELETE CASCADE,
47 FOREIGN KEY(tag_id) REFERENCES tags(id) ON DELETE CASCADE,
48 PRIMARY KEY (`id`)
34) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file 49) ENGINE=InnoDB DEFAULT CHARSET=utf8; \ No newline at end of file