You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since tern use transactions for each migration, is it safe to wrap each migration file between BEGIN/COMMIT statements? We are migrating from golang-migrate to tern and we have these, so I wonder if I need to remove them. It appears to work just fine, but would love to hear an official word :)
Thanks!
The text was updated successfully, but these errors were encountered:
The begin would be ignored as you are already in a transaction. But the commit would actually commit the transaction.
The only problem is a failure that occurred in the tiny window between finishing your migration and tern updating the version table would mean your migration would have been applied but that fact didn't get recorded. Hence a subsequent migration run would attempt to rerun the same migration.
Hello,
since tern use transactions for each migration, is it safe to wrap each migration file between BEGIN/COMMIT statements? We are migrating from golang-migrate to tern and we have these, so I wonder if I need to remove them. It appears to work just fine, but would love to hear an official word :)
Thanks!
The text was updated successfully, but these errors were encountered: