summaryrefslogtreecommitdiff
path: root/app/Schema/Migration44.php
diff options
context:
space:
mode:
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']);