mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
- Use 'prisma/config' import (re-export from @prisma/config for better compatibility) - Change workflow condition from always() to failure() for proper job triggering - Fix migration rollback command syntax with proper schema path - All changes verified and tested successfully Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
23 lines
629 B
TypeScript
23 lines
629 B
TypeScript
/**
|
|
* Prisma Configuration
|
|
*
|
|
* This file replaces the deprecated package.json#prisma configuration.
|
|
* See: https://www.prisma.io/docs/orm/reference/prisma-config-reference
|
|
*/
|
|
import { defineConfig } from 'prisma/config'
|
|
|
|
export default defineConfig({
|
|
// Schema is in the repo root prisma/ directory
|
|
schema: '../../prisma/schema.prisma',
|
|
|
|
migrations: {
|
|
path: '../../prisma/migrations',
|
|
},
|
|
|
|
datasource: {
|
|
// Use process.env directly to avoid errors when DATABASE_URL is not set
|
|
// (e.g., during `prisma generate` in CI where DB isn't needed)
|
|
url: process.env.DATABASE_URL ?? 'file:./dev.db',
|
|
},
|
|
})
|