diesel: Failed with: relation “__diesel_schema_migrations” does not exist

If you’re exporting an existing database with pg_dump and trying to use that exported SQL with diesel and your initial migration, even after diesel setup has been done and get this message:

Failed with: relation "__diesel_schema_migrations" does not exist

Then you likely have the following line in your postgreSQL dump:

it needs to be changed to

in order for the import to work.

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *