From 8037d4efb1097c51dd68c1266ca828e494f8f311 Mon Sep 17 00:00:00 2001 From: lsces Date: Wed, 4 Feb 2026 19:55:50 +0000 Subject: Not as good as ADOdb, but functional in adding auto-increment column to table --- src/Schema/Grammars/FirebirdGrammar.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Schema/Grammars/FirebirdGrammar.php b/src/Schema/Grammars/FirebirdGrammar.php index 17037fb..221a5f7 100755 --- a/src/Schema/Grammars/FirebirdGrammar.php +++ b/src/Schema/Grammars/FirebirdGrammar.php @@ -311,6 +311,22 @@ class FirebirdGrammar extends Grammar } } + /** + * Get the SQL for an auto-increment column modifier. + * + * @param \Illuminate\Database\Schema\Blueprint $blueprint + * @param \Illuminate\Support\Fluent $column + * @return string|null + */ + protected function modifyIncrement(Blueprint $blueprint, Fluent $column) + { + if (in_array($column->type, $this->serials) && $column->autoIncrement) { + return $this->hasCommand($blueprint, 'primary') || ($column->change && ! $column->primary) + ? ' unique' + : ' generated BY DEFAULT as identity primary key'; + } + } + /** * Create the column definition for a char type. * -- cgit v1.3