Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrations dropping all indexes #127

Open
remcoabc opened this issue Jan 21, 2022 · 4 comments
Open

Migrations dropping all indexes #127

remcoabc opened this issue Jan 21, 2022 · 4 comments

Comments

@remcoabc
Copy link

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

@robbertstevens
Copy link

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

@kujtimiihoxha
Copy link

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

@robbertstevens
Copy link

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

@sandysound
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants