chore: run db migrations on page load
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
Some checks failed
Release Workflow / determine-release-type (push) Has been cancelled
Release Workflow / checks (push) Has been cancelled
Release Workflow / e2e-tests (push) Has been cancelled
Release Workflow / build-images (push) Has been cancelled
Release Workflow / publish-release (push) Has been cancelled
This commit is contained in:
parent
db163a1bb5
commit
0d07f9c4a7
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue