diff options
| author | lsces <lester@lsces.co.uk> | 2026-02-04 19:58:55 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-02-04 19:58:55 +0000 |
| commit | 3a5b628c420f5756976769728f0c42c853a76b99 (patch) | |
| tree | a188427eed6b88259367d7ec09a417a4716187f2 | |
| parent | 8037d4efb1097c51dd68c1266ca828e494f8f311 (diff) | |
| download | illuminate-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-x | src/Schema/Grammars/FirebirdGrammar.php | 2 |
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})"; } |
