BUG? Association, Foreign key, Sync is broken? (Model --> Database)
Posted: Mon 10 Apr 2017 05:46
Entity Developer v6.1.215
Tested using Postgres, this issue may occur in other database engines as well (untested).
How to reproduce issue
PgAdmin
1) Create two tables (do not add foreign key)
Entity Developer
2) Open Entity Developer and import the tables (Database --> Model)
3) Add an association
4) Update the database (Model --> Database)
In step #4, you will notice that Entity Developer is unable to detect that the new association/foreign key relationship you just created in Entity Developer does not yet exist in the physical database, now the model and the database is out of sync (the models are not the same as the database tables, its different!)
Tested using Postgres, this issue may occur in other database engines as well (untested).
How to reproduce issue
PgAdmin
1) Create two tables (do not add foreign key)
Entity Developer
2) Open Entity Developer and import the tables (Database --> Model)
3) Add an association
4) Update the database (Model --> Database)
In step #4, you will notice that Entity Developer is unable to detect that the new association/foreign key relationship you just created in Entity Developer does not yet exist in the physical database, now the model and the database is out of sync (the models are not the same as the database tables, its different!)