Thank you for the bug report. A fix will be forthcoming. In the meantime, if you create a corrupt schema this way by accident, and want to recovery the database file, you can do so using the following command sequence: ~~~ PRAGMA writable_schema=ON; DELETE FROM sqlite_master WHERE name LIKE 'if'; PRAGMA writable_schema=OFF; ~~~