From 3a5b628c420f5756976769728f0c42c853a76b99 Mon Sep 17 00:00:00 2001 From: lsces Date: Wed, 4 Feb 2026 19:58:55 +0000 Subject: laravel adds additional unique constraint to databases that do not automatically make primary key unique. Have commented out these extra indexes in webtrees, but need a better check to hide these automatically. --- src/Schema/Grammars/FirebirdGrammar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Schema/Grammars/FirebirdGrammar.php b/src/Schema/Grammars/FirebirdGrammar.php index 221a5f7..2e209e6 100755 --- a/src/Schema/Grammars/FirebirdGrammar.php +++ b/src/Schema/Grammars/FirebirdGrammar.php @@ -181,7 +181,7 @@ class FirebirdGrammar extends Grammar $index = $this->wrap(substr($command->index, 0, 31)); $columns = $this->columnize($command->columns); - +// need to skip if the columns are already part of the primary key return "ALTER TABLE {$table} ADD CONSTRAINT {$index} UNIQUE ({$columns})"; } -- cgit v1.3