Release 2.60 (#5971)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user