vieter/src/dbms/migrations/002-rename-to-targets/up.sql

6 lines
201 B
MySQL
Raw Normal View History

ALTER TABLE GitRepo RENAME TO Target;
ALTER TABLE GitRepoArch RENAME TO TargetArch;
ALTER TABLE TargetArch RENAME COLUMN repo_id TO target_id;
ALTER TABLE BuildLog RENAME COLUMN repo_id TO target_id;