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
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
Create a few entities with foreign keys and primary keys in TypeORM 0.1.16 and sync to a Postgres DB. Then update to TypeORM 0.2.8 and then, sync again (using either synchronize: true or migration:generate). The migration file will contain a number of strange (and failing) commands such as queryRunner.query(``ALTER TABLE "Payments" DROP CONSTRAINT "PK_c1ed52d44692c02be2669cb3e30"``); even though no constraint with that ID exists.
It will also attempt to drop and re-add every column, regardless of whether its actually changed.
The text was updated successfully, but these errors were encountered:
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:
Create a few entities with foreign keys and primary keys in TypeORM 0.1.16 and sync to a Postgres DB. Then update to TypeORM 0.2.8 and then, sync again (using either
synchronize: true
ormigration:generate
). The migration file will contain a number of strange (and failing) commands such asqueryRunner.query(``ALTER TABLE "Payments" DROP CONSTRAINT "PK_c1ed52d44692c02be2669cb3e30"``);
even though no constraint with that ID exists.It will also attempt to drop and re-add every column, regardless of whether its actually changed.
The text was updated successfully, but these errors were encountered: