summaryrefslogtreecommitdiff
path: root/app/Schema/Migration4.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Schema/Migration4.php')
-rw-r--r--app/Schema/Migration4.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Schema/Migration4.php b/app/Schema/Migration4.php
index 1c611f2de8..fa8d292eb6 100644
--- a/app/Schema/Migration4.php
+++ b/app/Schema/Migration4.php
@@ -16,6 +16,7 @@
namespace Fisharebest\Webtrees\Schema;
use Fisharebest\Webtrees\Database;
+use Fisharebest\Webtrees\DebugBar;
use PDOException;
/**
@@ -31,12 +32,16 @@ class Migration4 implements MigrationInterface {
try {
Database::exec("ALTER TABLE `##gedcom` ADD COLUMN sort_order INTEGER NOT NULL DEFAULT 0");
} catch (PDOException $ex) {
+ DebugBar::addThrowable($ex);
+
// If this fails, it has probably already been done.
}
try {
Database::exec("ALTER TABLE `##gedcom` ADD INDEX ix1 (sort_order)");
} catch (PDOException $ex) {
+ DebugBar::addThrowable($ex);
+
// If this fails, it has probably already been done.
}