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/Migration45.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/Migration45.php')
| -rw-r--r-- | app/Schema/Migration45.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/Schema/Migration45.php b/app/Schema/Migration45.php index b8e7a6e774..da55bed172 100644 --- a/app/Schema/Migration45.php +++ b/app/Schema/Migration45.php @@ -54,10 +54,9 @@ final readonly class Migration45 implements MigrationInterface // SQL-Server can't use CASCADE or SET NULL constraints here, as it can't handle multiple paths $table->foreign(columns: ['contact_user_id'])->references(['user_id'])->on('user'); $table->foreign(columns: ['support_user_id'])->references(['user_id'])->on('user'); - } else { + } else if !(DB::driverName() === DB::FIREBIRD) { $table->foreign(columns: ['contact_user_id'])->references(['user_id'])->on('user')->nullOnDelete()->cascadeOnUpdate(); - $table->foreign(columns: ['support_user_id'])->references(['user_id'])->on('user')->nullOnDelete()->cascadeOnUpdate(); - } + $table->foreign(columns: ['support_user_id'])->references(['user_id'])->on('user')->nullOnDelete()->cascadeOnUpdate(); } }); } |
