I could be doing something wrong, but why is gener...
# orm-help
k
I could be doing something wrong, but why is generated migration implements the opposite of what I want to achieve? I changed
BusinessLocation.userId_unique
to
userId_UNIQUE
, but received this:
Copy code
ALTER TABLE `BusinessLocation` RENAME INDEX `userId_UNIQUE` TO `BusinessLocation.userId_unique`;
Please note that the initial migration was
create-only
and this is the second one, also
create-only
. nothing applied yet to db.
r
@khareta 👋 Have you added this to your
schema.prisma
as well like this?
Copy code
@@unique(name: "userId_UNIQUE")
k
@Ryan I have @unique added to each of the unique columns
Also @Ryan Where should we post our questions?
We gave up on using migration in our upcoming major release. So maybe in future we may re-consider it.