diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-10 16:06:29 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-07-10 16:06:29 +0300 |
| commit | 3ad53aeeffec00f85bf1f3168d0e9d61c65eecb7 (patch) | |
| tree | 7cfc4a6fbc865f9aeddb3a41febd795b20b69609 /backend/database | |
| parent | feat: add chapter numbers in names (diff) | |
| download | lphub-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.sql | 6 | ||||
| -rw-r--r-- | backend/database/init.sql | 1 |
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 @@ | |||
| 1 | INSERT INTO games(id, name) VALUES | 1 | INSERT 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 ( | |||
| 11 | CREATE TABLE games ( | 11 | CREATE 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 | ||