mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-08 08:55:40 +00:00
25 lines
631 B
TypeScript
25 lines
631 B
TypeScript
import { build } from "@server/build";
|
|
import { APP_PATH } from "@server/lib/consts";
|
|
import { defineConfig } from "drizzle-kit";
|
|
import path from "path";
|
|
|
|
let schema;
|
|
if (build === "oss") {
|
|
schema = [path.join("server", "db", "sqlite", "schema.ts")];
|
|
} else {
|
|
schema = [
|
|
path.join("server", "db", "sqlite", "schema.ts"),
|
|
path.join("server", "db", "sqlite", "privateSchema.ts")
|
|
];
|
|
}
|
|
|
|
export default defineConfig({
|
|
dialect: "sqlite",
|
|
schema: schema,
|
|
out: path.join("server", "migrations"),
|
|
verbose: true,
|
|
dbCredentials: {
|
|
url: path.join(APP_PATH, "db", "db.sqlite")
|
|
}
|
|
});
|