1. Use decoded SQLite (e.g. comment encryption code and re-install app)
2. Instead of running migrations run SQLiteQueryExecutor::getStorage().sync_schema(); which will generate database.
3. Connect do database using sqlite3 and call `PRAGMA index_list(messages);` and `PRAGMA index_list(media);`;
4. Check if indexes match previous one, created by migrations.