From 71a2452b4a87c9ed03ca251d895d4b618d6fa87e Mon Sep 17 00:00:00 2001 From: Brendan O'Connell Date: Tue, 28 May 2024 15:02:00 +0200 Subject: [PATCH] Trying to fix newline issue --- thoth-api/migrations/v0.12.6/down.sql | 3 +-- thoth-api/migrations/v0.12.6/up.sql | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/thoth-api/migrations/v0.12.6/down.sql b/thoth-api/migrations/v0.12.6/down.sql index a7b9b4a7..7439bc07 100644 --- a/thoth-api/migrations/v0.12.6/down.sql +++ b/thoth-api/migrations/v0.12.6/down.sql @@ -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') @@ -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'))); - \ No newline at end of file diff --git a/thoth-api/migrations/v0.12.6/up.sql b/thoth-api/migrations/v0.12.6/up.sql index 8f040f56..b7509333 100644 --- a/thoth-api/migrations/v0.12.6/up.sql +++ b/thoth-api/migrations/v0.12.6/up.sql @@ -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')); - \ No newline at end of file