From a remote Docker target I created database seeds as initial content and schema on a new target.
-
First problem I came across is that it’s not possible to select all tables and create a single seed containing the full schema and all data, so seeds have to be created table by table.
-
Secondly, the import doesn’t work on my other target and also not on my local development target (Docker), because of reference field dependencies.
-
Therefore I tried to change the
On Update
andOn Delete
properties toCascade
(also tried other options), but also applying this change returns an error. Please see the knex file and error message below:
How can I make this work?? Thanks for any help.