aboutsummaryrefslogtreecommitdiffhomepage
path: root/install
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-12-12 01:48:24 -0800
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-12-12 01:48:24 -0800
commit05d6dd487ceaf8c00510ebe5e0e762fcc11df691 (patch)
treeebe6a344aa054a37c1c2d2e54efc59a67930e873 /install
parentd460914f65254d201911a8346792d680218c8dc3 (diff)
parent6bf4702608e4f32d66a9840ec93461f653315a76 (diff)
downloadwallabag-05d6dd487ceaf8c00510ebe5e0e762fcc11df691.tar.gz
wallabag-05d6dd487ceaf8c00510ebe5e0e762fcc11df691.tar.zst
wallabag-05d6dd487ceaf8c00510ebe5e0e762fcc11df691.zip
Merge pull request #356 from inthepoche/tags
Tags feature
Diffstat (limited to 'install')
-rw-r--r--install/mysql.sql15
-rwxr-xr-xinstall/poche.sqlitebin360448 -> 393216 bytes
-rw-r--r--install/postgres.sql13
3 files changed, 27 insertions, 1 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
diff --git a/install/poche.sqlite b/install/poche.sqlite
index 7abf1f62..b911f272 100755
--- a/install/poche.sqlite
+++ b/install/poche.sqlite
Binary files differ
diff --git a/install/postgres.sql b/install/postgres.sql
index 9e0e8276..fe8f559c 100644
--- a/install/postgres.sql
+++ b/install/postgres.sql
@@ -27,4 +27,15 @@ CREATE TABLE users_config (
27 user_id integer NOT NULL, 27 user_id integer NOT NULL,
28 name varchar(255) NOT NULL, 28 name varchar(255) NOT NULL,
29 value varchar(255) NOT NULL 29 value varchar(255) NOT NULL
30); \ No newline at end of file 30);
31
32CREATE TABLE tags (
33 id bigserial primary key,
34 value varchar(255) NOT NULL
35);
36
37CREATE TABLE tags_entries (
38 id bigserial primary key,
39 entry_id integer NOT NULL,
40 tag_id integer NOT NULL
41) \ No newline at end of file