fixing:db

This commit is contained in:
averel10
2026-03-20 07:55:15 +01:00
parent 5015048cf7
commit c9080f3b3c
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -42,3 +42,4 @@ next-env.d.ts
*.db *.db
tmp tmp
public/datasets public/datasets
public/downloads

View File

@@ -49,7 +49,6 @@ ENV BUILD_TIME=${BUILD_TIME}
# .next/cache/fetch-cache from being included in the final image, meaning # .next/cache/fetch-cache from being included in the final image, meaning
# cached fetch responses from the build won't be available at runtime. # cached fetch responses from the build won't be available at runtime.
RUN npm run build RUN npm run build
RUN npm run db:generate
# ============================================ # ============================================
# Stage 3: Run Next.js application # Stage 3: Run Next.js application

View File

@@ -11,4 +11,5 @@ CREATE TABLE `experiment` (
); );
--> statement-breakpoint --> statement-breakpoint
ALTER TABLE `annotation` ADD `experiment_id` integer REFERENCES experiment(id);--> 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; ALTER TABLE annotation ADD COLUMN updated_at INTEGER NOT NULL DEFAULT 0;
UPDATE annotation SET updated_at = unixepoch();