Skip to content

Commit 10cb5f5

Browse files
authored
LEGLINK-729: Updating DB Migration Pipeline + Adding App Config for QA2 (#1787)
Updating DB Migration Pipeline for QA2 Adding App-Config for QA2
1 parent fabd296 commit 10cb5f5

2 files changed

Lines changed: 2866 additions & 0 deletions

File tree

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)