aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/migrations/2022-01-02-105610_matches
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-03-10 23:35:42 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-03-10 23:35:42 +0100
commit523de3ba0692734237b5ed6fa6dce8fbad9d69c8 (patch)
tree1886c3bfcaba756f3bcc1ca5f4fec7a8b98dbc87 /planetwars-server/migrations/2022-01-02-105610_matches
parent95b733ba4d7e3041adf4fb42c66e2b83ccce1df9 (diff)
downloadplanetwars.dev-523de3ba0692734237b5ed6fa6dce8fbad9d69c8.tar.xz
planetwars.dev-523de3ba0692734237b5ed6fa6dce8fbad9d69c8.zip
save match players in database
Diffstat (limited to 'planetwars-server/migrations/2022-01-02-105610_matches')
-rw-r--r--planetwars-server/migrations/2022-01-02-105610_matches/up.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/migrations/2022-01-02-105610_matches/up.sql b/planetwars-server/migrations/2022-01-02-105610_matches/up.sql
index 28db0df..b02ee6b 100644
--- a/planetwars-server/migrations/2022-01-02-105610_matches/up.sql
+++ b/planetwars-server/migrations/2022-01-02-105610_matches/up.sql
@@ -11,7 +11,7 @@ CREATE INDEX match_created_at ON matches(created_at);
CREATE TABLE match_players (
match_id integer REFERENCES matches(id) NOT NULL,
- bot_id integer REFERENCES bots(id) NOT NULL,
player_id integer NOT NULL,
+ code_bundle_id integer REFERENCES code_bundles(id) NOT NULL,
PRIMARY KEY (match_id, player_id)
); \ No newline at end of file