diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-11 09:25:03 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-11 09:25:03 +0100 |
| commit | 4c5724df39a4f22d5b1b1117cc4a6200ce186784 (patch) | |
| tree | 431dad255d5cf0f48d4002f21d49c762579b1ee1 /app/Schema/Migration42.php | |
| parent | a64cc9967a255bf52811e8a74d2e30f88cb56671 (diff) | |
| download | webtrees-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/Migration42.php')
| -rw-r--r-- | app/Schema/Migration42.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/Schema/Migration42.php b/app/Schema/Migration42.php index 3b24443c54..38c00ecba5 100644 --- a/app/Schema/Migration42.php +++ b/app/Schema/Migration42.php @@ -62,10 +62,12 @@ class Migration42 implements MigrationInterface // Default constraint names are too long for MySQL. $key1 = DB::prefix($table->getTable() . '_ix1'); - $key2 = DB::prefix($table->getTable() . '_ix2'); - $table->unique(['gedcom_id', 'module_name', 'interface'], $key1); - $table->unique(['module_name', 'gedcom_id', 'interface'], $key2); + if (DB::driverName() != DB::FIREBIRD) { + // since unique index exists for fields firebird will not add duplicate + $key2 = DB::prefix($table->getTable() . '_ix2'); + $table->unique(['module_name', 'gedcom_id', 'interface'], $key2); + } $table->foreign('module_name')->references('module_name')->on('module')->cascadeOnDelete(); $table->foreign('gedcom_id')->references('gedcom_id')->on('gedcom')->cascadeOnDelete(); |
