Skip to content

Commit 4cc6238

Browse files
committed
Use separate migrations for creating and referencing new enum value, to work around known issue
1 parent a1bcd16 commit 4cc6238

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BEGIN;
2+
COMMIT;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TYPE file_type ADD VALUE IF NOT EXISTS 'accessibility_report';

thoth-api/migrations/20260415_v1.0.0/metadata.toml

Lines changed: 0 additions & 1 deletion
This file was deleted.

thoth-api/migrations/20260415_v1.0.0/up.sql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
ALTER TYPE file_type ADD VALUE IF NOT EXISTS 'accessibility_report';
2-
31
ALTER TABLE file DROP CONSTRAINT IF EXISTS file_type_check;
42
ALTER TABLE file_upload DROP CONSTRAINT IF EXISTS file_upload_type_check;
53

0 commit comments

Comments
 (0)