add global locking mechanism to database migrations

If we want to use a global lock to prevent race conditions on who gets to run a migration, this MR should implement that

Merge request reports

Loading