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
TypeORM migration:generate produces pointless migration changes #3441
Comments
Same issue to me. "Date" column continues to generate migration files that have pointless alter sql command. |
Is there any news on this? I also have the same issue. |
You shouldn't use precision on char column. Precision property is intended only for some numeric types. You should set length property instead. As for datetime and precision - it will be fixed in 0.3.0 after merging #3262 |
anyone knows how to solve this issue? i have the same problem and it's getting rediculous.. |
Same problem here. |
it's 2021 and it's still happening :( |
2022 and still happening. |
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
Add an following entity to existing TypeORM projecT:
Generate a migration using:
It will produce initial migration that contains Session table creation. Then run the migration as:
And then re-run the migration generation
Result of that will be migration that regenerates sessionId column. If the entity lacks precision specifier, and the above scenario is re-ran it will produce no second AnyName2 migration.
The issue is similar to these ones where the precision triggers non existing difference observation by the migration generator:
#1960
#2943
The text was updated successfully, but these errors were encountered: