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

7 lines
301 B
MySQL
Raw Permalink Normal View History

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