3 ms·
> If you experience such errors: > In the database remove the record from alembic_version table > Remove any files from your computer under app/migrations. I
by leetrout 7y ago
> If you experience such errors:
> In the database remove the record from alembic_version table
> Remove any files from your computer under app/migrations.
I'm not sure advising users to delete all their migrations is the right thing to do (which is what this appears to be doing).
- KRains 7y agoTo be honest me either. The problem with these files is if you keep them you will not able to update the database because your last file has one version and database does another. You could just remove the last migration file, that would work too. As for the problem overall, I didn't find a good solution for it. Maybe you can help?