Open Rima-chan opened 1 year ago
What does the migration file look like that added the full text index to the database?
This is the migration file
CREATE TABLE `Translation` (
`id` VARCHAR(191) NOT NULL,
`fr` TEXT NOT NULL,
FULLTEXT INDEX `Translation_fr_idx`(`fr`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
Bug description
I have added a fulltext index on a field of my table I ran the migration and it works as expected However, when i run the
npx migrate diff
(only from migrations to database), i have the following outputKnowing that running this command outputs nothing :
So it seems that once migration is applied there is no difference between shadow database and datamodel.
I've also checked with MySQL, the type of my index which is a FULLTEXT Index :
I really don't understand why
npx migrate diff
detect differences and I can't investigate the migration-engine binary.Thanks for your help and don't hesitate if feedback are missings
How to reproduce
Expected behavior
nxp prisma migrate diff
should not detect differences between migrations files and prisma modelPrisma information
Environment & setup
Prisma Version