diff options
Diffstat (limited to 'app/Schema/Migration12.php')
| -rw-r--r-- | app/Schema/Migration12.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Schema/Migration12.php b/app/Schema/Migration12.php index f8a047077e..be2031e2ff 100644 --- a/app/Schema/Migration12.php +++ b/app/Schema/Migration12.php @@ -16,6 +16,7 @@ namespace Fisharebest\Webtrees\Schema; use Fisharebest\Webtrees\Database; +use Fisharebest\Webtrees\DebugBar; use PDOException; /** @@ -32,6 +33,8 @@ class Migration12 implements MigrationInterface { try { Database::exec("UPDATE `##gedcom_setting` SET setting_name='MEDIA_UPLOAD' WHERE setting_name='MULTI_MEDIA'"); } catch (PDOException $ex) { + DebugBar::addThrowable($ex); + // This could theoretically cause a duplicate key error, if a MULTI_MEDIA setting already exists } |
