Fix migration 0022 for sqlite3