Flask migration using sqlalchemy database error:
Error: Can't locate revision identified by 'xxxxxx'
error reason: the database version is wrong, maybe migrations file is changed, but the original database table is still used.
solution:
- delete migrations folder + alembic_version table in the database table, re-initialize the database and update;
- delete the entire database table, then you can directly do the database initialization update operation. (migrations folders can also be deleted, equivalent to recreating the database table, the original data will not exist)
Read More:
- Android “handler” is abstract; can’t be identified solution
- Failed to find Build Tools revision 27.0.3
- Bad default revision ‘head’
- Project error – failed to find build tools revision 26.0.1
- gradle:failed to find Build Tools revision 29.0.2
- [problem record] installed build tools revision 31.0.0 is broken during Android studio compilation
- Failed to find Build Tools revision 25.0.2
- Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager
- “Android.””IDE,” CMakereward Invalid revision: 3.18.1-g262b901-dirtyerror
- Linux novice: unable to locate package error solution
- U disk installation Linux system could not boot, / dev / root does not exist and the identified hard disk space is not available
- An unable to locate appropriate constructor on class solution appears
- About the problem that Ubuntu kylin can’t locate the package update
- Unable to locate executable for jre1.8.0_261
- 2021-07-27 Android studio:Installed build tools revision 31.0.0 is corrupted.Remove and install ag
- [actual record of Android stepping on the pit] Android studio runs with errors. Installed build tools revision 31 is broken
- Adobe finally launched Photoshop fix on Android, a powerful mobile phone map revision app
- CANNOT LINK EXECUTABLE: cannot locate symbol
- Selenium: 8 Ways to Locate Elements
- After BS4, select was used to locate