From 9bc2d80e4ad7f5a2ba84d7906b3d758c770b1f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=C3=B3teo?= Date: Wed, 10 Jul 2024 19:15:09 -0300 Subject: [PATCH] fix: compileAdd with getColumn (laravel_framework_11.15.0) --- src/Oci8/Schema/Grammars/OracleGrammar.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Oci8/Schema/Grammars/OracleGrammar.php b/src/Oci8/Schema/Grammars/OracleGrammar.php index fcd37c3f..4c74ca50 100644 --- a/src/Oci8/Schema/Grammars/OracleGrammar.php +++ b/src/Oci8/Schema/Grammars/OracleGrammar.php @@ -269,7 +269,11 @@ public function compileForeignKeys($schema, $table) */ public function compileAdd(Blueprint $blueprint, Fluent $command) { - $columns = implode(', ', $this->getColumns($blueprint)); + if (method_exists($this, 'getColumn')) { + $columns = $this->getColumn($blueprint, $command->column); + } else { + $columns = implode(', ', $this->getColumns($blueprint)); + } $sql = 'alter table '.$this->wrapTable($blueprint)." add ( $columns";