Skip to content

Add the possibility to exclude a table absent #1265

@amaurycoudr

Description

@amaurycoudr

We would like to exclude _prisma_migrations because, in a local environment, the table is not always present, causing the generated files to change for no valid reason. However, we encountered this error:

"Collection '_prisma_migrations' not found. List of available collections."

Would it be possible to allow optionally absent tables in the exclude field like this?

.addDataSource(createSqlDataSource("database.url"), {
    exclude: ["_prisma_migrations"],
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions