Open kirillzh opened 6 months ago
Also attempted to turn off foreign key checks like so PRAGMA foreign_keys = OFF
. The query does pass but doesn't seem to actually disable the check, deleting tables that run into foreign key constraint fails:
org.sqlite.SQLiteException: [SQLITE_CONSTRAINT_FOREIGNKEY] A foreign key constraint failed (FOREIGN KEY constraint failed)
When using driver from the documentation
JdbcSqliteDriver(
url = "...",
properties = Properties().apply { put("foreign_keys", "true") }
)
Having same problem with disabling foreign_keys during migrations. Unable to alter table with FK (Copy, delete, create and insert data from temp)
SQLDelight Version
2.0.0
SQLDelight Dialect
Sqlite (jvm)
Describe the Bug
Attempting to disable foregin key checks throws error:
Stacktrace