Fix migrations to not have nulls

This commit is contained in:
Alessio 2022-12-26 12:56:05 -05:00
parent 1570075443
commit 83a6edb257

View File

@ -81,12 +81,12 @@ var MIGRATIONS = []string{
create index if not exists index_images_tweet_id on images (tweet_id); create index if not exists index_images_tweet_id on images (tweet_id);
create index if not exists index_videos_tweet_id on videos (tweet_id);`, create index if not exists index_videos_tweet_id on videos (tweet_id);`,
`alter table spaces add column created_by_id integer references users(id); `alter table spaces add column created_by_id integer references users(id);
alter table spaces add column state text not null; alter table spaces add column state text not null default "";
alter table spaces add column title text not null; alter table spaces add column title text not null default "";
alter table spaces add column created_at integer not null; alter table spaces add column created_at integer;
alter table spaces add column started_at integer not null; alter table spaces add column started_at integer;
alter table spaces add column ended_at integer not null; alter table spaces add column ended_at integer;
alter table spaces add column updated_at integer not null; alter table spaces add column updated_at integer;
alter table spaces add column is_available_for_replay boolean not null; alter table spaces add column is_available_for_replay boolean not null;
alter table spaces add column replay_watch_count integer; alter table spaces add column replay_watch_count integer;
alter table spaces add column live_listeners_count integer; alter table spaces add column live_listeners_count integer;