aboutsummaryrefslogtreecommitdiff
path: root/backend/database
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-10 16:06:29 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-10 16:06:29 +0300
commit3ad53aeeffec00f85bf1f3168d0e9d61c65eecb7 (patch)
tree7cfc4a6fbc865f9aeddb3a41febd795b20b69609 /backend/database
parentfeat: add chapter numbers in names (diff)
downloadlphub-3ad53aeeffec00f85bf1f3168d0e9d61c65eecb7.tar.gz
lphub-3ad53aeeffec00f85bf1f3168d0e9d61c65eecb7.tar.bz2
lphub-3ad53aeeffec00f85bf1f3168d0e9d61c65eecb7.zip
feat: is_coop field on games
Former-commit-id: bf3a5a262557ade646ce8e59db152be8c521ac06
Diffstat (limited to 'backend/database')
-rw-r--r--backend/database/games.sql6
-rw-r--r--backend/database/init.sql1
2 files changed, 4 insertions, 3 deletions
diff --git a/backend/database/games.sql b/backend/database/games.sql
index 5e2f4ee..0c2374c 100644
--- a/backend/database/games.sql
+++ b/backend/database/games.sql
@@ -1,3 +1,3 @@
1INSERT INTO games(id, name) VALUES 1INSERT INTO games(id, name, is_coop) VALUES
2(1, 'Portal 2 - Singleplayer'), 2(1, 'Portal 2 - Singleplayer', false),
3(2, 'Portal 2 - Cooperative'); \ No newline at end of file 3(2, 'Portal 2 - Cooperative', true); \ No newline at end of file
diff --git a/backend/database/init.sql b/backend/database/init.sql
index 76c3aa6..c7d098c 100644
--- a/backend/database/init.sql
+++ b/backend/database/init.sql
@@ -11,6 +11,7 @@ CREATE TABLE users (
11CREATE TABLE games ( 11CREATE TABLE games (
12 id SMALLSERIAL, 12 id SMALLSERIAL,
13 name TEXT NOT NULL, 13 name TEXT NOT NULL,
14 is_coop BOOLEAN NOT NULL,
14 PRIMARY KEY (id) 15 PRIMARY KEY (id)
15); 16);
16 17