Fix a malformed SQLite database
From time to time, when running integration tests you'll notice that tests that worked previously have stopped working. Trying to modify the schema of an SQLite database is throwing an error. The dreaded:
Error (11) malformed database
Fortunately, there's quite an easy fix. Simply head to the command line, and use the following commands:
sqlite3 yourdatabase.sqlite