mirror of
https://github.com/fosrl/pangolin.git
synced 2025-10-30 06:07:25 +00:00
18 lines
408 B
TypeScript
18 lines
408 B
TypeScript
import { APP_PATH } from "@server/lib/consts";
|
|
import { defineConfig } from "drizzle-kit";
|
|
import path from "path";
|
|
|
|
const schema = [
|
|
path.join("server", "db", "sqlite", "schema"),
|
|
];
|
|
|
|
export default defineConfig({
|
|
dialect: "sqlite",
|
|
schema: schema,
|
|
out: path.join("server", "migrations"),
|
|
verbose: true,
|
|
dbCredentials: {
|
|
url: path.join(APP_PATH, "db", "db.sqlite")
|
|
}
|
|
});
|