I tried to migrate from H2 to Postgres. Getting following error. Command failed with exception: ERROR: insert or update on table "metabase_table" violates foreign key constraint "fk_table_ref_database_id" Detail: Key (db_id)=(102) is not present in table "metabase_database".
Version Details:
Metabase : Metabase v0.41.5
Postgres : 12.7 (running in docker conatiner)
Java : openjdk 11.0.13 2021-10-19
@psujit775 You should be able to do something like this - haven't tested.
Create a file called cleanup.sql and add the queries you want to execute (like the DELETE-statement)
This run this: