summaryrefslogtreecommitdiff
path: root/app/Schema/Migration44.php
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-11 09:25:03 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-11 09:25:03 +0100
commit4c5724df39a4f22d5b1b1117cc4a6200ce186784 (patch)
tree431dad255d5cf0f48d4002f21d49c762579b1ee1 /app/Schema/Migration44.php
parenta64cc9967a255bf52811e8a74d2e30f88cb56671 (diff)
downloadwebtrees-firebird.tar.gz
webtrees-firebird.tar.bz2
webtrees-firebird.zip
Add Firebird/PDO support via lsces/illuminate-firebirdHEADv2.2.7-lscfirebird
Diffstat (limited to 'app/Schema/Migration44.php')
-rw-r--r--app/Schema/Migration44.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Schema/Migration44.php b/app/Schema/Migration44.php
index 0495552c0f..8855083291 100644
--- a/app/Schema/Migration44.php
+++ b/app/Schema/Migration44.php
@@ -42,7 +42,10 @@ class Migration44 implements MigrationInterface
$table->double('longitude')->nullable();
$table->unique(['parent_id', 'place']);
- $table->unique(['place', 'parent_id']);
+ if (DB::driverName() != DB::FIREBIRD) {
+ // since unique index exists for fields firebird will not add duplicate
+ $table->unique(['place', 'parent_id']);
+ }
$table->index(['latitude']);
$table->index(['longitude']);