merge: allow deploy after migration removal

This commit is contained in:
qiuxiang 2026-09-28 13:14:11 +08:00
commit e73183f52e

View File

@ -430,7 +430,7 @@ try {
}
if ($previousSha -and $previousShaExists) {
$migrationChanges = git diff --name-only "$previousSha..$deploySha" -- `
$migrationChanges = git diff --diff-filter=ACMRTUXB --name-only "$previousSha..$deploySha" -- `
database/migrations `
':(glob)modules/*/Database/Migrations/*.php'
if ($migrationChanges -and -not $AllowMigrations) {