If you have the *good* schema on hand, you could leverage [SQLite's diff tool](1) perhaps? And its `--schema` option? [1]: https://sqlite.org/sqldiff.html
If you have the *good* schema on hand, you could leverage [SQLite's diff tool](1) perhaps? And its `--schema` option? [1]: https://sqlite.org/sqldiff.html