Skip to content

DB seed does not work with custom schema location #5213

@flybayer

Description

@flybayer

Bug description

The new prisma db seed command does not work with a custom schema location.

With schema location of db/schema.prisma, the seed file should also be looked for at db/seed.ts.

How to reproduce

Set custom schema location and a seed.ts file beside that schema.

Expected behavior

Should be able to have a seed.ts file as a sibling of a custom schema location.

Prisma information

2.15.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions