mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-19 06:18:12 -04:00
chore: run db migrations on page load
This commit is contained in:
@@ -3,9 +3,9 @@ import { shutdown } from "./server/modules/lifecycle/shutdown";
|
||||
import { runCLI } from "./server/cli";
|
||||
import { createStartHandler, defaultStreamHandler, defineHandlerCallback } from "@tanstack/react-start/server";
|
||||
import { createServerEntry } from "@tanstack/react-start/server-entry";
|
||||
import { sqlite } from "./server/db/db";
|
||||
import { runDbMigrations } from "./server/db/db";
|
||||
|
||||
sqlite.run("PRAGMA foreign_keys = ON;");
|
||||
await runDbMigrations();
|
||||
|
||||
const cliRun = await runCLI(Bun.argv);
|
||||
if (cliRun) {
|
||||
|
||||
Reference in New Issue
Block a user