~netlandish/links

b268734359a01e7e5295df608aab166f7938582f — Peter Sanchez 4 days ago 4eacde9
Removing redundant UNIQUE constraint on listings slug.
2 files changed, 2 insertions(+), 2 deletions(-)

M migrations/0001_initial.up.sql
M models/schema.sql
M migrations/0001_initial.up.sql => migrations/0001_initial.up.sql +1 -1
@@ 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,

M models/schema.sql => models/schema.sql +1 -1
@@ 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,