mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 14:16:19 +00:00
no migrar al correr sitio
voy a tener que resolver esto de alguna otra manera en algún momento
This commit is contained in:
parent
dade60d677
commit
e97b355715
1 changed files with 0 additions and 3 deletions
|
@ -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 });
|
||||||
|
|
Loading…
Reference in a new issue