Release 2.60 (#5971)

This commit is contained in:
Kevin Papst
2026-06-10 12:39:54 +02:00
committed by GitHub
parent 8ed666c0eb
commit a2c1c71cfc
26 changed files with 252 additions and 145 deletions

View File

@@ -58,9 +58,11 @@ abstract class AbstractMigration extends BaseAbstractMigration
}
}
protected function preventEmptyMigrationWarning(): void
protected function preventEmptyMigrationWarning(bool $always = true): void
{
$this->addSql('#prevent empty warning - no SQL to execute');
if ($always || \count($this->getSql()) === 0) {
$this->addSql('#prevent empty warning - no SQL to execute');
}
}
/**