ArsenyYankovsky / typeorm-aurora-data-api-driver

A bridge between TypeORM and Aurora Data API
MIT License
174 stars 38 forks source link

Migrations dropping all indexes #127

Open remcoabc opened 2 years ago

remcoabc commented 2 years ago

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

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

robbertstevens commented 2 years ago

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

kujtimiihoxha commented 2 years ago

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

robbertstevens commented 2 years ago

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

sandysound commented 2 years ago

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.