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?
55 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
BEGIN
andCOMMIT
. To disable this implicit wrapping you wrap your migration betweenCOMMIT
andBEGIN
(the other way round). You can read more about it here.