From f73ef57cf26950ee70b3642dfe677d413a034ffb Mon Sep 17 00:00:00 2001 From: Alessio Date: Thu, 23 Dec 2021 15:36:14 -0500 Subject: [PATCH] Remove `unique` keyword from migration since that's apparently not allowed --- persistence/schema.sql | 4 ++-- persistence/versions.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/persistence/schema.sql b/persistence/schema.sql index 5582e5b..ee68910 100644 --- a/persistence/schema.sql +++ b/persistence/schema.sql @@ -126,8 +126,8 @@ create table videos (rowid integer primary key, height integer not null, remote_url text not null unique, local_filename text not null unique, - thumbnail_remote_url text not null unique default "missing", - thumbnail_local_filename text not null unique default "missing", + thumbnail_remote_url text not null default "missing", + thumbnail_local_filename text not null default "missing", is_gif boolean default 0, is_downloaded boolean default 0, diff --git a/persistence/versions.go b/persistence/versions.go index b2f3c3f..b9d66e0 100644 --- a/persistence/versions.go +++ b/persistence/versions.go @@ -54,8 +54,8 @@ var MIGRATIONS = []string{ alter table tweets add column last_scraped_at integer not null default 0`, `update tombstone_types set tombstone_text = 'This Tweet is from a suspended account' where rowid = 2; insert into tombstone_types (rowid, short_name, tombstone_text) values (5, 'violated', 'This Tweet violated the Twitter Rules'), (6, 'no longer exists', 'This Tweet is from an account that no longer exists')`, -`alter table videos add column thumbnail_remote_url text not null unique default "missing"; - alter table videos add column thumbnail_local_filename text not null unique default "missing"`, +`alter table videos add column thumbnail_remote_url text not null default "missing"; + alter table videos add column thumbnail_local_filename text not null default "missing"`, } /**