From d83bcc66d6cc4fb71ca6cb13682877c1335d9863 Mon Sep 17 00:00:00 2001 From: Hafez Divandari Date: Mon, 15 Jul 2024 17:54:27 +0330 Subject: [PATCH] cleanup --- src/Schema/Grammars/GrammarTable.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Schema/Grammars/GrammarTable.php b/src/Schema/Grammars/GrammarTable.php index b790c78..ddd3914 100644 --- a/src/Schema/Grammars/GrammarTable.php +++ b/src/Schema/Grammars/GrammarTable.php @@ -40,10 +40,7 @@ public function compileAdd(Blueprint $blueprint, Fluent $command): array $column['default'] = $column['initial']; } - $sql[] = sprintf('alter table %s add column %s', - $this->wrapTable($blueprint), - $this->getColumn($blueprint, $command->column) - ); + $sql[] = parent::compileAdd($blueprint, $command); return array_reverse($sql); }