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