I use migrations a lot (only MySQL) and since SubSonic Migrations only allows to define the parent and the master column in CreateForeignKey, I cannot define the update/delete actions in a FK Relation.
However there a quite a number of scenarios where I, for instance, need to define a FK relation where, if I delete the parent record, all records in the child table should be set to null (default would be to restrict the delete).
I use a little function that does this for me. However since this is totally MySQL specific, and it breaks the idea that stands behand migrations (to be DB independent), I decided not to provide a patch for this. So I post the code snippet here.
But if someone needs this, too. Feel free to use it.
There is only one drawback: Since sonic.exe reads the code file and complies it on the fly you have to paste the code into every migration where you use it.