piccolo-orm/piccolo

Allow SQLite auto migrations

Closed this issue · 0 comments

Discussed in #624

Over time SQLite's support for DDL statements has been improving.

We currently raise sys.exit if a user tries creating an auto migration for SQLite. If you're using a recent version of SQLite, and have simple use cases (e.g. adding tables), then auto migrations will work fine.

if auto and isinstance(engine, SQLiteEngine):
sys.exit("Auto migrations aren't currently supported by SQLite.")

So instead of raising sys.exit we will output a warning instead.