From 53147596b4f5c3fa522b9ca5c576fd781eba279f Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 3 Jan 2024 18:47:39 +0100 Subject: [PATCH] Drop unique constraint for site.name (fixes #4329) (#4342) * Drop unique constraint for site.name (fixes #4329) * working down migration --- migrations/2024-01-02-094916_site-name-not-unique/down.sql | 3 +++ migrations/2024-01-02-094916_site-name-not-unique/up.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 migrations/2024-01-02-094916_site-name-not-unique/down.sql create mode 100644 migrations/2024-01-02-094916_site-name-not-unique/up.sql diff --git a/migrations/2024-01-02-094916_site-name-not-unique/down.sql b/migrations/2024-01-02-094916_site-name-not-unique/down.sql new file mode 100644 index 000000000..eef68d2fe --- /dev/null +++ b/migrations/2024-01-02-094916_site-name-not-unique/down.sql @@ -0,0 +1,3 @@ +ALTER TABLE site + ADD CONSTRAINT site_name_key UNIQUE (name); + diff --git a/migrations/2024-01-02-094916_site-name-not-unique/up.sql b/migrations/2024-01-02-094916_site-name-not-unique/up.sql new file mode 100644 index 000000000..02f07d67a --- /dev/null +++ b/migrations/2024-01-02-094916_site-name-not-unique/up.sql @@ -0,0 +1,3 @@ +ALTER TABLE site + DROP CONSTRAINT site_name_key; +