no migrar al correr sitio

voy a tener que resolver esto de alguna otra manera en algún momento
This commit is contained in:
Cat /dev/Nulo 2024-01-14 10:47:13 -03:00
parent dade60d677
commit e97b355715

View file

@ -2,10 +2,7 @@
import Database from "better-sqlite3"; import Database from "better-sqlite3";
import { drizzle } from "drizzle-orm/better-sqlite3"; import { drizzle } from "drizzle-orm/better-sqlite3";
import { DB_PATH } from "./drizzle.config.js"; import { DB_PATH } from "./drizzle.config.js";
import { migrateDb } from "./migrate.js";
import * as schema from "./schema.js"; import * as schema from "./schema.js";
migrateDb();
export const sqlite = new Database(DB_PATH); export const sqlite = new Database(DB_PATH);
export const db = drizzle(sqlite, { schema }); export const db = drizzle(sqlite, { schema });