File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -448,3 +448,33 @@ stages:
448448 SqlPassword : ' $(link-db_pass)'
449449 deployType : ' SqlTask'
450450 SqlFile : ' $(Pipeline.Workspace)/${{ db.artifact }}/${{ db.file }}'
451+
452+ # ###########################################################################################
453+ # SQL Script Apply QA2
454+ # ###########################################################################################
455+ - stage : Apply_QA2_Update_SQL_DBs
456+ displayName : Apply QA2 SQL Updates
457+ trigger : manual
458+ condition : always()
459+
460+ pool :
461+ vmImage : windows-latest
462+
463+ jobs :
464+ - ${{ each db in parameters.databases }} :
465+ - job : Update_${{ db.name }}_QA
466+ displayName : Update ${{ db.name }}
467+ steps :
468+ - download : current
469+ artifact : ${{ db.artifact }}
470+
471+ - task : SqlAzureDacpacDeployment@1
472+ displayName : Apply ${{ db.name }} DB Schema
473+ inputs :
474+ azureSubscription : " NHSNLink Resource Manager"
475+ ServerName : ' $(link-db_server)'
476+ DatabaseName : ' link-qa2-botw-${{ db.name }}'
477+ SqlUsername : ' $(link-db_username)'
478+ SqlPassword : ' $(link-db_pass)'
479+ deployType : ' SqlTask'
480+ SqlFile : ' $(Pipeline.Workspace)/${{ db.artifact }}/${{ db.file }}'
You can’t perform that action at this time.
0 commit comments