You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use App::DH and DBIC-DeploymentHandler to create migration files, currently for SQLite and PostgreSQL. After I've made my application enforce PRAGMA foreign_keys = on for SQLite I found that the generated SQL is invalid. For complex table changes a temporary table is created like this:
For SQLite I see no other solution that to just skip the FKs for the temporary table. The new main table will have FKs again and if PRAGMA foreign_keys is on they will be checked during insertion.
I use App::DH and DBIC-DeploymentHandler to create migration files, currently for SQLite and PostgreSQL. After I've made my application enforce
PRAGMA foreign_keys = on
for SQLite I found that the generated SQL is invalid. For complex table changes a temporary table is created like this:This is invalid SQL.
For SQLite I see no other solution that to just skip the FKs for the temporary table. The new main table will have FKs again and if
PRAGMA foreign_keys
is on they will be checked during insertion.I filed this bug before at DBIC-DeploymentHandler. For more details and research see frioux/DBIx-Class-DeploymentHandler#76
The text was updated successfully, but these errors were encountered: