From 5782651aa691125f11a80e241f14c681dda7a7c1 Mon Sep 17 00:00:00 2001 From: Joe Ardent Date: Thu, 29 Jun 2023 15:33:15 -0700 Subject: [PATCH] remove 'created_at' fields, we have that in the id --- migrations/20230426221940_init.up.sql | 5 ----- 1 file changed, 5 deletions(-) diff --git a/migrations/20230426221940_init.up.sql b/migrations/20230426221940_init.up.sql index b4bf1f4..3b9d91a 100644 --- a/migrations/20230426221940_init.up.sql +++ b/migrations/20230426221940_init.up.sql @@ -11,7 +11,6 @@ create table if not exists witches ( email text, last_seen int, pwhash blob not null, - created_at int not null default (unixepoch()), last_updated int not null default (unixepoch()) ); @@ -24,7 +23,6 @@ create table if not exists watches ( length int, release_date int, added_by blob not null, -- ID of the user that added it - created_at int not null default (unixepoch()), last_updated int not null default (unixepoch()), foreign key (added_by) references witches (id) ); @@ -40,7 +38,6 @@ create table if not exists witch_watch ( watched boolean not null, when_added int, when_watched int, - created_at int not null default (unixepoch()), last_updated int not null default (unixepoch()), foreign key (witch) references witches (id) on delete cascade on update no action, foreign key (watch) references watches (id) on delete cascade on update no action @@ -51,7 +48,6 @@ create table if not exists witch_watch ( create table if not exists covens ( witch blob not null primary key, coven blob, -- possibly empty friends list in some app-specific format - created_at int not null default (unixepoch()), last_updated int not null default (unixepoch()), foreign key (witch) references witches (id) on delete cascade on update no action ); @@ -62,7 +58,6 @@ create table if not exists watch_notes ( watch blob not null, note blob, public boolean not null, - created_at int not null default (unixepoch()), last_updated int not null default (unixepoch()), foreign key (witch) references witches (id) on delete cascade on update no action, foreign key (watch) references watches (id) on delete cascade on update no action