multiSchema: migrate reset
only resets first schema
#16561
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/schema
Issue for team Schema.
tech/engines/migration engine
Issue in the Migration Engine
topic: multiSchema
multiple schemas
Milestone
Bug description
WIthout
multiSchema
,migrate reset
drops all tables and starts from an empty schema.With
multiSchema
, I observe it only "resets" the first schema in the list.This causes subsequent resets to fail when migrations conflict with the end state of a secondary schema - e.g. you have a migration that renames a table in a schema that isn't the first schema.
How to reproduce
migration.sql
:subsequent runs of
prisma migrate reset
fail with errorrelation "NewName" already exists
My impression is this issue is relatively straightforward (not yet implemented) - just let me know if a working reproduction is required.
Expected behavior
No response
Prisma information
Prisma v4.7.0
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: