public async Task <IActionResult> Run(
            [HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "dbmigration")] HttpRequest req,
            ILogger log,
            ClaimsPrincipal user)
        {
            if (!_authorizationManager.CanManageDatabase(user))
            {
                return(new ForbidResult());
            }

            log.LogInformation("Starting Migration");
            await _context.Database.EnsureCreatedAsync();

            await MigrateDeletionFlag();

            log.LogInformation("Migration Complete");

            return(new OkResult());
        }