In `sqldelight` Are foreign keys supposed to be tu...
# squarelibraries
u
In
sqldelight
Are foreign keys supposed to be turned on if I init the android driver like this - during migrations as well?
Copy code
return AndroidSqliteDriver(
        schema = schema,
        context = context,
        name = "foo",
        callback = object : AndroidSqliteDriver.Callback(
            schema = schema,
            callbacks = sqlDriverMigrations.map { it.run() }.toTypedArray()
        ) {
            override fun onConfigure(db: SupportSQLiteDatabase) {
                db.setForeignKeyConstraintsEnabled(true)
            }
        }
    )
}
also
Copy code
PRAGMA foreign_keys = 0;
...
PRAGMA foreign_keys = 1;
does nothing, they're still on inside Am I SOL?