mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 02:45:39 -04:00
Add LOG_LEVEL logger helper with createLogger() utility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+5
-2
@@ -1,8 +1,11 @@
|
||||
import { migrate } from "drizzle-orm/bun-sqlite/migrator";
|
||||
import { createLogger } from "@/lib/logger";
|
||||
import { db } from "./client";
|
||||
|
||||
const log = createLogger("db");
|
||||
|
||||
export function runMigrations() {
|
||||
console.log("[migrate] Running database migrations...");
|
||||
log.info("Running database migrations...");
|
||||
migrate(db, { migrationsFolder: "./drizzle" });
|
||||
console.log("[migrate] Database migrations complete");
|
||||
log.info("Database migrations complete");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user