summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-02-04 19:58:55 +0000
committerlsces <lester@lsces.co.uk>2026-02-04 19:58:55 +0000
commit3a5b628c420f5756976769728f0c42c853a76b99 (patch)
treea188427eed6b88259367d7ec09a417a4716187f2
parent8037d4efb1097c51dd68c1266ca828e494f8f311 (diff)
downloadilluminate-firebird-3a5b628c420f5756976769728f0c42c853a76b99.tar.gz
illuminate-firebird-3a5b628c420f5756976769728f0c42c853a76b99.tar.bz2
illuminate-firebird-3a5b628c420f5756976769728f0c42c853a76b99.zip
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.
-rwxr-xr-xsrc/Schema/Grammars/FirebirdGrammar.php2
1 files changed, 1 insertions, 1 deletions
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})";
}