diff --git a/server/azure-pipelines.migrate.yaml b/server/azure-pipelines.migrate.yaml index 2390bbfee..88133bda9 100644 --- a/server/azure-pipelines.migrate.yaml +++ b/server/azure-pipelines.migrate.yaml @@ -1,5 +1,6 @@ # Adds an Entity Framework Core migration to a pull request that changes data in data/*.json +# TODO: If data/* and server/src/FilterLists.Data.Migrations/* change in origin/master, re-trigger this Pipeline. trigger: none pr: @@ -21,9 +22,6 @@ steps: git checkout $(System.PullRequest.SourceBranch) displayName: checkout source branch - # TODO: Merge latest data/* and server/src/FilterLists.Data.Migrations/* from origin/master. - # TODO: If data/* and server/src/FilterLists.Data.Migrations/* change in origin/master, re-trigger this Pipeline. - # TODO: validate author of last commit was $(GITHUBNAME) - bash: | LASTMSG=$(git log -n 1 --pretty=format:"%s") @@ -69,6 +67,8 @@ steps: workingDirectory: server/src condition: and(ne(variables['abortIfJustMigrated.aborted'], 'true'), succeeded()) + # TODO: Merge latest data/* and server/src/FilterLists.Data.Migrations/* from origin/master. + - script: dotnet ef migrations add $(System.PullRequest.PullRequestNumber) -p FilterLists.Data.Migrations -s FilterLists.Api displayName: add migration workingDirectory: server/src