Unable to deploy updates after database crash

I recreated a database after a crash using a snapshot. Everything seems to be working fine. But, now I am unable to push updated code with fly deploy. I’m getting an error 15:02:22.627 [error] Could not create schema migrations table. But the schema_migrations table exists.

Does anyone know how to resolve this issue?