Move CMS SQL to drizzle/migrations, drop prisma packages/schema, wire drizzle-kit scripts, and regenerate schema names from src/db/schema.ts. Co-authored-by: Cursor <[email protected]>
20 lines
672 B
TypeScript
20 lines
672 B
TypeScript
import "dotenv/config";
|
|
import { defineConfig } from "drizzle-kit";
|
|
|
|
// Schema source of truth for the query builder: src/db/schema.ts
|
|
// (regenerated via `pnpm db:schema:generate` from the previous schema + live DB).
|
|
//
|
|
// This DB is shared with the Arcturus emulator — NEVER run `drizzle-kit migrate`
|
|
// or `push` against it. CMS DDL stays in drizzle/migrations/*.sql applied by
|
|
// `pnpm db:migrate`. Use `pnpm db:generate` only for draft SQL under drizzle/drafts/.
|
|
export default defineConfig({
|
|
dialect: "mysql",
|
|
schema: "./src/db/schema.ts",
|
|
out: "./drizzle/drafts",
|
|
dbCredentials: {
|
|
url: process.env.DATABASE_URL ?? "",
|
|
},
|
|
strict: true,
|
|
verbose: true,
|
|
});
|