typeorm-aurora-data-api-driver icon indicating copy to clipboard operation
typeorm-aurora-data-api-driver copied to clipboard

Migrations dropping all indexes

Open remcoabc opened this issue 3 years ago • 4 comments

Package versions and database engine type (please complete the following information):

  • Database Engine: [mysql]
  • TypeORM Version: [e.g. 0.2.41]
  • Driver Version [e.g. 2.3.4]

Describe the bug When we generate a migration without any changes to the entities it will generate a migration in which all indexes are dropped and created again.

What result we expect We expect a message which states that there are no changes

remcoabc avatar Jan 21 '22 08:01 remcoabc

@ArsenyYankovsky Do you know if this is a known issue?

robbertstevens avatar Jan 28 '22 13:01 robbertstevens

@robbertstevens @ArsenyYankovsky I am seeing the same issue was wondering if this is a typeorm issue or a driver issue?

kujtimiihoxha avatar May 12 '22 15:05 kujtimiihoxha

No, idea. I have no experience with Typeorm besides this.

robbertstevens avatar May 13 '22 11:05 robbertstevens

I'm seeing the same issue with this driver. If I run a local mysql 5.7 docker container then use the mysql driver and run the migration generation pointing to this then the migrations are generated correctly. We're on typeorm 0.2.38 and typeorm-aurora-data-api-driver 2.3.4 but I did some testing with the latest versions and this issue still exists. If I get a bit more time I'll do some more testing and see if I can pinpoint where this is happening but probably going to have to use the docker setup as a workaround for the moment.

sandysound avatar Jun 02 '22 23:06 sandysound