diff --git a/.phive/phars.xml b/.phive/phars.xml index 848f478f..e116501f 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -1,4 +1,4 @@ - + diff --git a/src/Command/RollbackCommand.php b/src/Command/RollbackCommand.php index 60051062..bf45b0a7 100644 --- a/src/Command/RollbackCommand.php +++ b/src/Command/RollbackCommand.php @@ -235,7 +235,6 @@ protected function getTargetFromDate(string|bool $date): string 4 => '0101000000', ]; - /** @var string $date */ $dateLength = strlen($date); if (!isset($dateStrlenToAppend[$dateLength])) { throw new InvalidArgumentException('Invalid date. Format is YYYY[MM[DD[HH[II[SS]]]]].'); diff --git a/src/Db/Table.php b/src/Db/Table.php index ee68e53d..1d5487c3 100644 --- a/src/Db/Table.php +++ b/src/Db/Table.php @@ -1186,7 +1186,7 @@ protected function executeActions(bool $exists): void } // Only skip CreateTable if we have ONLY view/trigger actions (and at least one) - if (!$hasViewOrTriggerActions || $hasTableActions || $actions === []) { + if (!$hasViewOrTriggerActions || $hasTableActions) { $this->actions->addAction(new CreateTable($this->table)); } }