aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPierre <pierre@newinx.dyndns.org>2014-01-07 22:55:48 +0100
committerPierre <pierre@newinx.dyndns.org>2014-01-07 22:55:48 +0100
commit9ffce01e0cc05e62336ccb69d4a6d2d2fc7b565d (patch)
tree4b4bc7f1c0d05d6f425a1c92104ecf5bbd87a670
parentb4b22940dfbb8b56422e244272d22b7741e6ce7c (diff)
downloadwallabag-9ffce01e0cc05e62336ccb69d4a6d2d2fc7b565d.tar.gz
wallabag-9ffce01e0cc05e62336ccb69d4a6d2d2fc7b565d.tar.zst
wallabag-9ffce01e0cc05e62336ccb69d4a6d2d2fc7b565d.zip
Correction de bugs dans le schema mysql
- users/name type de int a varchar - valeurs par defaut ajoutees pour entries/is_read et is_fav
-rw-r--r--install/mysql.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/mysql.sql b/install/mysql.sql
index d16381d8..de5640e4 100644
--- a/install/mysql.sql
+++ b/install/mysql.sql
@@ -9,8 +9,8 @@ CREATE TABLE IF NOT EXISTS `entries` (
9 `id` int(11) NOT NULL AUTO_INCREMENT, 9 `id` int(11) NOT NULL AUTO_INCREMENT,
10 `title` varchar(255) NOT NULL, 10 `title` varchar(255) NOT NULL,
11 `url` varchar(255) NOT NULL, 11 `url` varchar(255) NOT NULL,
12 `is_read` tinyint(1) NOT NULL, 12 `is_read` tinyint(1) NOT NULL DEFAULT 0,
13 `is_fav` tinyint(1) NOT NULL, 13 `is_fav` tinyint(1) NOT NULL DEFAULT 0,
14 `content` blob NOT NULL, 14 `content` blob NOT NULL,
15 `user_id` int(11) NOT NULL, 15 `user_id` int(11) NOT NULL,
16 PRIMARY KEY (`id`) 16 PRIMARY KEY (`id`)
@@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS `users` (
20 `id` int(11) NOT NULL AUTO_INCREMENT, 20 `id` int(11) NOT NULL AUTO_INCREMENT,
21 `username` varchar(255) NOT NULL, 21 `username` varchar(255) NOT NULL,
22 `password` varchar(255) NOT NULL, 22 `password` varchar(255) NOT NULL,
23 `name` int(255) NOT NULL, 23 `name` varchar(255) NOT NULL,
24 `email` varchar(255) NOT NULL, 24 `email` varchar(255) NOT NULL,
25 PRIMARY KEY (`id`) 25 PRIMARY KEY (`id`)
26) ENGINE=InnoDB DEFAULT CHARSET=utf8; 26) ENGINE=InnoDB DEFAULT CHARSET=utf8;