I am trying to import the Postgresql data from my remote docker target to the local docker target with seeds. This throws errors when the db tables contain reference fields, like this one:
"insert or update on table “products” violates key constraint
“products_product_category_foreign”.
The db schema and tables were built on development docker target and then on first deployment on the remote target I copied the db_init file to the target.
Then, on the remote docker target data were added which I want to use on the development version now too, so I created seeds from the remote docker target database and tried to import those on the local docker target. This works for some of the tables (without reference fields), however errors are thrown for seeds of tables with reference fields.