make youtube_id unique
This commit is contained in:
parent
c0b84948ba
commit
15f3bc4f42
|
@ -62,7 +62,7 @@ var pgMigration = []string{
|
||||||
`CREATE TABLE video (
|
`CREATE TABLE video (
|
||||||
id uuid PRIMARY KEY,
|
id uuid PRIMARY KEY,
|
||||||
status video_status NOT NULL,
|
status video_status NOT NULL,
|
||||||
youtube_id VARCHAR(255) NOT NULL,
|
youtube_id VARCHAR(255) NOT NULL UNIQUE,
|
||||||
title VARCHAR(255) NOT NULL,
|
title VARCHAR(255) NOT NULL,
|
||||||
feed_id VARCHAR(255) NOT NULL,
|
feed_id VARCHAR(255) NOT NULL,
|
||||||
description TEXT,
|
description TEXT,
|
||||||
|
|
Loading…
Reference in New Issue