how to set pragma foreign_keys = off, during migrations?

Sqlite does not have the best support when it comes to altering columns and I need to manually write them in the generated migration .SQL files. But I keep getting the foreign key constraint error when I try to run the migration even with pragma foreign keys set to off. Thanks in advance.
Was this page helpful?