diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1915d27..4419777 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,6 +39,7 @@ jobs:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: 1
PROJECT_NAME: DancingGoat
+ DB_NAME: XByK_DancingGoat_Shopify_UAT
ASPNETCORE_URLS: https://localhost:14065
STATUS_CHECK_URL: https://localhost:14065/status
@@ -90,19 +91,19 @@ jobs:
-d master `
-U "sa" `
-P "Pass@12345" `
- -Q "RESTORE DATABASE [XByK_DancingGoat_Shopify_UAT] FROM DISK='/var/opt/mssql/backup/${{ env.DATABASE_BACKUP_FILENAME }}' WITH MOVE 'XByK_DancingGoat_Shopify' TO '/var/opt/mssql/data/XByK_DancingGoat_Shopify_UAT.mdf', MOVE 'XByK_DancingGoat_Shopify_log' TO '/var/opt/mssql/data/XByK_DancingGoat_Shopify_UAT_log.ldf'"
+ -Q "RESTORE DATABASE [${{env.DB_NAME}}] FROM DISK='/var/opt/mssql/backup/${{ env.DATABASE_BACKUP_FILENAME }}' WITH MOVE 'XByK_DancingGoat_Shopify' TO '/var/opt/mssql/data/${{env.DB_NAME}}.mdf', MOVE 'XByK_DancingGoat_Shopify_log' TO '/var/opt/mssql/data/${{env.DB_NAME}}_log.ldf'"
sqlcmd `
-S localhost `
-d master `
-U "sa" `
-P "Pass@12345" `
- -Q "SELECT KeyValue FROM XByK_DancingGoat_Shopify_UAT.dbo.CMS_SettingsKey WHERE KeyName = 'CMSDBVersion'"
+ -Q "SELECT KeyValue FROM ${{env.DB_NAME}}.dbo.CMS_SettingsKey WHERE KeyName = 'CMSDBVersion'"
sqlcmd `
-S localhost `
-d master `
-U "sa" `
-P "Pass@12345" `
- -Q "SELECT TOP 1 EventTime, EventDescription FROM XByK_DancingGoat_Shopify_UAT.dbo.CMS_EventLog ORDER BY EventTime DESC"
+ -Q "SELECT TOP 1 EventTime, EventDescription FROM ${{env.DB_NAME}}.dbo.CMS_EventLog ORDER BY EventTime DESC"
if: endsWith(env.DATABASE_BACKUP_FILENAME, '.bak')
- name: Restore Database .bacpac
@@ -110,7 +111,7 @@ jobs:
sqlpackage `
/a:Import `
/tsn:localhost `
- /tdn:XByK_DancingGoat_Shopify_UAT `
+ /tdn:${{env.DB_NAME}} `
/tu:sa `
/tp:Pass@12345 `
/sf:"./database/${{ env.DATABASE_BACKUP_FILENAME }}" `
diff --git a/examples/DancingGoat-Shopify/DancingGoat.csproj b/examples/DancingGoat-Shopify/DancingGoat.csproj
index 9f81b6f..1f25806 100644
--- a/examples/DancingGoat-Shopify/DancingGoat.csproj
+++ b/examples/DancingGoat-Shopify/DancingGoat.csproj
@@ -23,6 +23,9 @@
$(DefineConstants);SEPARATED_ADMIN
+
+ false
+
diff --git a/scripts/Restore-CI.ps1 b/scripts/Restore-CI.ps1
index 2e2527f..da083d6 100644
--- a/scripts/Restore-CI.ps1
+++ b/scripts/Restore-CI.ps1
@@ -9,13 +9,14 @@ $projectPath = Get-WebProjectPath
$repositoryPath = Join-Path $projectPath "App_Data/CIRepository"
$launchProfile = $Env:ASPNETCORE_ENVIRONMENT -eq "CI" ? "EcommerceShopify.WebCI" : "DancingGoat"
$configuration = $Env:ASPNETCORE_ENVIRONMENT -eq "CI" ? "Release" : "Debug"
+$dbName = $Env:DB_NAME
$turnOffCI = "sqlcmd " + `
"-S localhost " + `
- "-d master " + `
+ "-d $dbName " + `
"-U `"sa`" " + `
"-P `"Pass@12345`" " + `
- "-Q `"UPDATE XByK_DancingGoat_Shopify_UAT.dbo.CMS_SettingsKey SET KeyValue = N'False' WHERE KeyName = N'CMSEnableCI'`""
+ "-Q `"UPDATE CMS_SettingsKey SET KeyValue = N'False' WHERE KeyName = N'CMSEnableCI'`""
$updateCommand = "dotnet run " + `
"--launch-profile $launchProfile " + `