1. Use decoded SQLite (e.g. comment encryption code and re-install app)
2. Connect to database (path should be logged) by `sqlite3` and check data in metadata table.
3. Run this code and restart app to run migration
4. Connect to database and run `.schema metadata` to check if the constraint is added and data is unchanged.