You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…7681)
* fix: correctly strip type conversion in postgres for default values
Use better regex to remove only type conversion, not the whole string to the end
Closes: 7110
* fix: better regex
* fix: modify postgres default regex to not break #1532
* fix: modify postgres default regex to support user-defined types
This makes sure updated regex does not break migrations chnages introduced in #7647
* test: add test case for #5132
Issue type:
[ ] question
[X] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[X]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[X]
latest
[ ]
@next
[X]
0.2.20
(or put your version here)Steps to reproduce or a small repository showing the problem:
See repo at https://github.com/anodynos/typeorm-bug-migrations-default-minus-1
Execute
╰─$ scripts/migration-generate.sh
to reproduce the issue.Assuming an Entity :
after the initial migration is added, every time we generate a migration (without any schema changes), we get a new migration like:
The text was updated successfully, but these errors were encountered: