Skip to content

Commit

Permalink
Trying to fix newline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-oconnell committed May 28, 2024
1 parent d8d9983 commit 71a2452
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions thoth-api/migrations/v0.12.6/down.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CREATE TYPE work_status AS ENUM (

ALTER TABLE work ALTER COLUMN work_status TYPE work_status USING work_status::work_status;

-- add constraints back to work table
-- add constraints back to work table
ALTER TABLE work
ADD CONSTRAINT work_active_withdrawn_date_check CHECK
((work_status = 'withdrawn-from-sale' OR work_status = 'out-of-print')
Expand All @@ -47,4 +47,3 @@ ALTER TABLE work
ADD CONSTRAINT work_inactive_no_withdrawn_date_check CHECK
(((work_status = 'withdrawn-from-sale' OR work_status = 'out-of-print') AND withdrawn_date IS NOT NULL)
OR (work_status NOT IN ('withdrawn-from-sale', 'out-of-print')));

1 change: 0 additions & 1 deletion thoth-api/migrations/v0.12.6/up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ ALTER TABLE work
ADD CONSTRAINT work_active_publication_date_check CHECK
((work_status = 'active' AND publication_date IS NOT NULL)
OR (work_status != 'active'));

0 comments on commit 71a2452

Please sign in to comment.