planetwars.dev/planetwars-server/migrations/2022-07-04-200149_code_bundle_to_bot_version/up.sql

7 lines
318 B
MySQL
Raw Normal View History

2022-07-05 20:33:39 +02:00
ALTER TABLE code_bundles RENAME TO bot_versions;
ALTER TABLE bot_versions RENAME COLUMN path to code_bundle_path;
ALTER TABLE bot_versions ALTER COLUMN code_bundle_path DROP NOT NULL;
ALTER TABLE bot_versions ADD COLUMN container_digest TEXT;
2022-07-06 22:41:27 +02:00
ALTER TABLE match_players RENAME COLUMN code_bundle_id TO bot_version_id;