mirror of https://github.com/ghostfolio/ghostfolio
Browse Source
Add prisma.config.ts to centralize Prisma setup; remove prisma config from package.json; seed via node prisma/seed.mtspull/5489/head
3 changed files with 14 additions and 20 deletions
@ -0,0 +1,11 @@ |
|||
import 'dotenv/config'; |
|||
import { join } from 'node:path'; |
|||
import { defineConfig } from 'prisma/config'; |
|||
|
|||
export default defineConfig({ |
|||
schema: join('prisma', 'schema.prisma'), |
|||
migrations: { |
|||
path: join('prisma', 'migrations'), |
|||
seed: 'node prisma/seed.mts' |
|||
} |
|||
}); |
|||
Loading…
Reference in new issue