Add MOTD table to SQL schema

This commit is contained in:
Markus Wang Halvorsen 2018-02-24 19:20:34 +01:00
parent 5412414ce1
commit 2a3f0d7be7
2 changed files with 11 additions and 0 deletions

6
dist/pvv.sql vendored
View File

@ -13,6 +13,7 @@ CREATE TABLE "projects" (
"name" TEXT,
"owner" TEXT,
"owneruname" TEXT,
"owneremail" TEXT,
"description" TEXT,
"active" BOOLEAN
);
@ -22,5 +23,10 @@ CREATE TABLE "users" (
"groups" INT DEFAULT 0
);
CREATE TABLE "motd" (
"title" TEXT,
"content" TEXT
);
INSERT INTO users (uname, groups)
VALUES ("min_test_bruker", 1);

5
dist/pvv_mysql.sql vendored
View File

@ -21,3 +21,8 @@ CREATE TABLE users (
`uname` TEXT,
`groups` INT DEFAULT 0
);
CREATE TABLE motd (
`title` TEXT,
`content` TEXT
);