This repository has been archived on 2026-01-06. You can view files and clone it, but cannot push or open issues/pull-requests.
vieter/src/db/migrations/002-rename-to-targets/down.sql

6 lines
202 B
SQL

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