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,