Skip to content

Commit

Permalink
Get CMSDBVersion after restore to check if version is correct.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkyjac committed Oct 21, 2024
1 parent 00ce5b3 commit 324972f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ jobs:
-U "sa" `
-P "Pass@12345" `
-Q "RESTORE DATABASE [XByK_DancingGoat_Shopify] FROM DISK='/var/opt/mssql/backup/${{ env.DATABASE_BACKUP_FILENAME }}' WITH MOVE 'XByK_DancingGoat_Shopify' TO '/var/opt/mssql/data/XByK_DancingGoat_Shopify.mdf', MOVE 'XByK_DancingGoat_Shopify_log' TO '/var/opt/mssql/data/XByK_DancingGoat_Shopify_log.ldf'"
sqlcmd `
-S localhost `
-d master `
-U "sa" `
-P "Pass@12345" `
-Q "SELECT KeyValue FROM CMS_SettingsKey WHERE KeyName = 'CMSDBVersion'"
if: endsWith(env.DATABASE_BACKUP_FILENAME, '.bak')

- name: Restore Database .bacpac
Expand Down

0 comments on commit 324972f

Please sign in to comment.