From b268734359a01e7e5295df608aab166f7938582f Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Tue, 19 Nov 2024 16:28:46 -0600 Subject: [PATCH] Removing redundant UNIQUE constraint on listings slug. --- migrations/0001_initial.up.sql | 2 +- models/schema.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/0001_initial.up.sql b/migrations/0001_initial.up.sql index 249aa52..ae8023b 100644 --- a/migrations/0001_initial.up.sql +++ b/migrations/0001_initial.up.sql @@ -303,7 +303,7 @@ CREATE INDEX tag_link_shorts_tag_id_idx ON tag_link_shorts (tag_id); CREATE TABLE listings ( id SERIAL PRIMARY KEY, title VARCHAR ( 150 ) NOT NULL, - slug VARCHAR ( 150 ) UNIQUE NOT NULL, + slug VARCHAR ( 150 ) NOT NULL, image VARCHAR(1024) DEFAULT '', metadata JSONB DEFAULT '{}', domain_id INT REFERENCES domains (id) ON DELETE CASCADE NOT NULL, diff --git a/models/schema.sql b/models/schema.sql index 249aa52..ae8023b 100644 --- a/models/schema.sql +++ b/models/schema.sql @@ -303,7 +303,7 @@ CREATE INDEX tag_link_shorts_tag_id_idx ON tag_link_shorts (tag_id); CREATE TABLE listings ( id SERIAL PRIMARY KEY, title VARCHAR ( 150 ) NOT NULL, - slug VARCHAR ( 150 ) UNIQUE NOT NULL, + slug VARCHAR ( 150 ) NOT NULL, image VARCHAR(1024) DEFAULT '', metadata JSONB DEFAULT '{}', domain_id INT REFERENCES domains (id) ON DELETE CASCADE NOT NULL, -- 2.45.2