فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
security(a02): operator pipeline requires real isolated DBCC CHECKDB before encrypted schema reporting
davoodmehraban89 committed
Oct 30, 2026 at 22:15 UTC
0d96f7b8f15bab1c7c79b068995e273899dc56d3
1 file changed
+3
-2
scripts/a02-private-owner-local-lab.ps1
+3
-2
@@ -127,7 +127,8 @@ try{
127
$database=[string]$restored.databaseName
128
Require ($database -cmatch '^FinoraHoloo_[0-9a-f]{32}$' -and
129
$restored.financialReconciled -eq $false -and
130
- $restored.importPerformed -eq $false) 'A02_RESTORE_CONTRACT_INVALID'
130
+ $restored.importPerformed -eq $false -and
131
+ $restored.dbccCheckDbPassed -eq $true) 'A02_RESTORE_CONTRACT_INVALID'
132
133
$script:Phase='private-schema-export'
134
$schema=Invoke-JsonStep 'a02-isolated-schema-inventory.ps1' @(
@@ -143,7 +144,7 @@ try{
144
isolatedDatabaseName=$database;stagedBackupPath=$script:BackupPath
145
encryptedSchemaManifestPath=$ManifestOutputPath
146
tableCount=$schema.tableCount;columnCount=$schema.columnCount
146
- sqlBackupVerified=$true;restoreExecuted=$true
147
+ sqlBackupVerified=$true;restoreExecuted=$true;dbccCheckDbPassed=$true
148
financialReconciled=$false;financialMigrationPerformed=$false;canImport=$false
149
} | ConvertTo-Json -Compress
150
}catch{