Remove unique keyword from migration since that's apparently not allowed

This commit is contained in:
Alessio 2021-12-23 15:36:14 -05:00
parent 51163af7d6
commit f73ef57cf2
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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"`,
}
/**