Fix for SQLite migrations