diff --git a/database/alter_table.anubis b/database/alter_table.anubis index 0e0d08e..4065876 100644 --- a/database/alter_table.anubis +++ b/database/alter_table.anubis @@ -222,7 +222,7 @@ public define Maybe(One) }, true then with tempNameTable = tableName + "_temp", - forget(sql_query(db, "PRAGMA foreign_keys = 0;")); + forget(sql_query(db, "PRAGMA foreign_keys = OFF;")); forget(sql_query(db, "DROP TABLE " + tempNameTable)); with result = if my_sql_query(db, "CREATE TEMP TABLE " + tempNameTable + " AS SELECT * from " + fullTableName, log) is failure then failure else if my_sql_query(db, "DROP TABLE " + fullTableName, log) is failure then failure else @@ -247,7 +247,7 @@ public define Maybe(One) } }, - forget(sql_query(db, "PRAGMA foreign_keys = 1;")); + forget(sql_query(db, "PRAGMA foreign_keys = ON;")); result } else -- libgit2 0.21.4