Skip to content

Commit

Permalink
Add migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang committed Jul 11, 2024
1 parent d6c84e0 commit 119b71f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ent/migrate/migrations/20240711020205_migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-- Modify "ci_workflow_results" table
ALTER TABLE "ci_workflow_results" DROP COLUMN "ci_workflow_result_storage_file";
-- Modify "storage_files" table
ALTER TABLE "storage_files" ADD COLUMN "ci_workflow_result_storage_file" uuid NULL, ADD CONSTRAINT "storage_files_ci_workflow_results_storage_file" FOREIGN KEY ("ci_workflow_result_storage_file") REFERENCES "ci_workflow_results" ("id") ON UPDATE NO ACTION ON DELETE SET NULL;
3 changes: 2 additions & 1 deletion ent/migrate/migrations/atlas.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
h1:h3OeqtCurX2SydS3SEmUePWltj943t/l1WpTCybCOcE=
h1:MusG99sEu+mYMCtNmhfJwvJXZ9lNgvTDHF/Ic1ewpA4=
20240526144817_migration.sql h1:sP6keX+oMyLL2qpIFx0Ns0WYfWM5hJ4zkFPmLWT68fM=
20240528220411_migration.sql h1:SR44sOEaWbDgYCKJZIKcGCI7Ta+LqL71z225Nhs2+HM=
20240528221846_migration.sql h1:EkUonGI9Bu689qWX4pG3PRC+On4f6u7UvwDbaR8mCNk=
Expand All @@ -12,3 +12,4 @@ h1:h3OeqtCurX2SydS3SEmUePWltj943t/l1WpTCybCOcE=
20240615222435_migration.sql h1:n4J0/FWg+mu6kAUTtHMiwG1mveFMsf2NT/jkhtczo48=
20240710235003_migration.sql h1:ZLlHFQ53xci+5+MpZydM2Rcchc+A486+UgqUOcU4eSY=
20240711000828_migration.sql h1:Becnwrp0A19Pg+L93ZFW+ioyUDjE7wjyQ/otd4svj7I=
20240711020205_migration.sql h1:cmVbSwCOBSq6eoxhkZJJPuh3LMK5D1YqLgJ9xkc9Z5w=

0 comments on commit 119b71f

Please sign in to comment.