planetwars.dev/planetwars-server/migrations/2022-07-04-200149_code_bundle_to_bot_version/down.sql
2022-07-06 22:41:27 +02:00

6 lines
301 B
SQL

ALTER TABLE match_players RENAME COLUMN bot_version_id TO code_bundle_id;
ALTER TABLE bot_versions DROP COLUMN container_digest;
ALTER TABLE bot_versions RENAME COLUMN code_bundle_path TO path;
ALTER TABLE bot_versions ALTER COLUMN path SET NOT NULL;
ALTER TABLE bot_versions RENAME TO code_bundles;