Skip to content

Commit

Permalink
fix: compileAdd with getColumn (laravel_framework_11.15.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
timoteo7 committed Jul 10, 2024
1 parent 4aa0469 commit 879c484
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Oci8/Schema/Grammars/OracleGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 879c484

Please sign in to comment.