aboutsummaryrefslogtreecommitdiffhomepage
path: root/install/postgres.sql
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-07 15:46:17 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-07 15:46:17 +0200
commit580d60b9416b3445300f37fc0ecc160254ed0676 (patch)
tree13cde22f34e0da3f097badfe4141754be419c746 /install/postgres.sql
parent68857cea8c08aab54c632d63f4526d0bb16f80d4 (diff)
downloadwallabag-580d60b9416b3445300f37fc0ecc160254ed0676.tar.gz
wallabag-580d60b9416b3445300f37fc0ecc160254ed0676.tar.zst
wallabag-580d60b9416b3445300f37fc0ecc160254ed0676.zip
file to update from 0.x to 1.x \o/
Diffstat (limited to 'install/postgres.sql')
-rw-r--r--install/postgres.sql30
1 files changed, 30 insertions, 0 deletions
diff --git a/install/postgres.sql b/install/postgres.sql
new file mode 100644
index 00000000..9e0e8276
--- /dev/null
+++ b/install/postgres.sql
@@ -0,0 +1,30 @@
1CREATE TABLE config (
2 id bigserial primary key,
3 name varchar(255) NOT NULL,
4 value varchar(255) NOT NULL
5);
6
7CREATE TABLE entries (
8 id bigserial primary key,
9 title varchar(255) NOT NULL,
10 url varchar(255) NOT NULL,
11 is_read boolean DEFAULT false,
12 is_fav boolean DEFAULT false,
13 content TEXT,
14 user_id integer NOT NULL
15);
16
17CREATE TABLE users (
18 id bigserial primary key,
19 username varchar(255) NOT NULL,
20 password varchar(255) NOT NULL,
21 name varchar(255) NOT NULL,
22 email varchar(255) NOT NULL
23);
24
25CREATE TABLE users_config (
26 id bigserial primary key,
27 user_id integer NOT NULL,
28 name varchar(255) NOT NULL,
29 value varchar(255) NOT NULL
30); \ No newline at end of file