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.

One Reply to “diesel: Failed with: relation “__diesel_schema_migrations” does not exist”

Leave a Reply to Richard Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.