From 22a8f3d619e8ef89eeb9a60ab0a27aed01aa93f7 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 27 Feb 2022 20:35:22 +0100 Subject: save all uploaded code bundles in database --- planetwars-server/migrations/2021-12-18-130837_bots/up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planetwars-server/migrations') diff --git a/planetwars-server/migrations/2021-12-18-130837_bots/up.sql b/planetwars-server/migrations/2021-12-18-130837_bots/up.sql index 22e250b..a23fbf7 100644 --- a/planetwars-server/migrations/2021-12-18-130837_bots/up.sql +++ b/planetwars-server/migrations/2021-12-18-130837_bots/up.sql @@ -8,7 +8,7 @@ CREATE UNIQUE INDEX bots_index ON bots(owner_id, name); CREATE TABLE code_bundles ( id serial PRIMARY KEY, - bot_id integer REFERENCES bots(id) NOT NULL, + bot_id integer REFERENCES bots(id), path text NOT NULL, created_at timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ); \ No newline at end of file -- cgit v1.2.3