From 523de3ba0692734237b5ed6fa6dce8fbad9d69c8 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 10 Mar 2022 23:35:42 +0100 Subject: save match players in database --- planetwars-server/migrations/2022-01-02-105610_matches/up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planetwars-server/migrations') 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 -- cgit v1.2.3