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
Since the transition from MySQL to Postgres the database constraints have not been properly set.
This seems to be caused by the mysql to postgres tool which does not properly set the required constraints. See the two screenshots of the table structure (in Postico) of the inforecords.Cluster table.
The unique and foreign key constraints are not properly set in the live database. Although Django should take care of most of these automatically it would be wiser to have the database constraints properly set.
This will require some careful work, probably restoring from a dump. However, I had some trouble loading a dumped database into my local database with proper constraints... If I loaded the dumped data into a bare database (without tables) it went without issues.
Since the transition from MySQL to Postgres the database constraints have not been properly set.
This seems to be caused by the mysql to postgres tool which does not properly set the required constraints. See the two screenshots of the table structure (in Postico) of the inforecords.Cluster table.
The unique and foreign key constraints are not properly set in the live database. Although Django should take care of most of these automatically it would be wiser to have the database constraints properly set.
This will require some careful work, probably restoring from a dump. However, I had some trouble loading a dumped database into my local database with proper constraints... If I loaded the dumped data into a bare database (without tables) it went without issues.
Live database
Local newly migrated database
( @davidfokkema @tomkooij @kaspervd )
The text was updated successfully, but these errors were encountered: