Skip to content

Commit 0f878c5

Browse files
Merge branch 'dev' into LEGLINK-840
2 parents 75425dd + 642558b commit 0f878c5

171 files changed

Lines changed: 10937 additions & 2080 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Azure_Pipelines/azure-pipelines.db-schema-creation.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff 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 }}'

0 commit comments

Comments
 (0)