I can't seem to find this in the guide. Is it necessary for us to add BEGIN; and COMMIT; to our migration files or is this handled by IHP?
Does IHP run migrations atomically?
56 Views Asked by Chris Schankula At
1
I can't seem to find this in the guide. Is it necessary for us to add BEGIN; and COMMIT; to our migration files or is this handled by IHP?
IHP does implicitly wrap the migrations within a transaction. So you don't need to wrap your migrations between
BEGINandCOMMIT. To disable this implicit wrapping you wrap your migration betweenCOMMITandBEGIN(the other way round). You can read more about it here.