From 15f3bc4f4269bdd328d446bbef37b6315a63bc2c Mon Sep 17 00:00:00 2001 From: Erik Winter Date: Wed, 10 May 2023 19:32:57 +0200 Subject: [PATCH] make youtube_id unique --- storage/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/postgres.go b/storage/postgres.go index 4bb1c9b..923c1d2 100644 --- a/storage/postgres.go +++ b/storage/postgres.go @@ -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,