diff --git a/.gitignore b/.gitignore index b646074..89e0d58 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,5 @@ next-env.d.ts *.db tmp -public/datasets \ No newline at end of file +public/datasets +public/downloads \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 01b9334..adcde0a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,7 +49,6 @@ ENV BUILD_TIME=${BUILD_TIME} # .next/cache/fetch-cache from being included in the final image, meaning # cached fetch responses from the build won't be available at runtime. RUN npm run build -RUN npm run db:generate # ============================================ # Stage 3: Run Next.js application diff --git a/drizzle/0008_smiling_lady_mastermind.sql b/drizzle/0008_smiling_lady_mastermind.sql index df9772c..f323930 100644 --- a/drizzle/0008_smiling_lady_mastermind.sql +++ b/drizzle/0008_smiling_lady_mastermind.sql @@ -11,4 +11,5 @@ CREATE TABLE `experiment` ( ); --> statement-breakpoint ALTER TABLE `annotation` ADD `experiment_id` integer REFERENCES experiment(id);--> statement-breakpoint -ALTER TABLE `annotation` ADD `updated_at` integer DEFAULT (unixepoch()) NOT NULL; \ No newline at end of file +ALTER TABLE annotation ADD COLUMN updated_at INTEGER NOT NULL DEFAULT 0; +UPDATE annotation SET updated_at = unixepoch(); \ No newline at end of file