diff options
Diffstat (limited to 'app/Module/FamilyTreeFavorites/Schema/Migration1.php')
| -rw-r--r-- | app/Module/FamilyTreeFavorites/Schema/Migration1.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Module/FamilyTreeFavorites/Schema/Migration1.php b/app/Module/FamilyTreeFavorites/Schema/Migration1.php index aee0c7363a..93e99f4c78 100644 --- a/app/Module/FamilyTreeFavorites/Schema/Migration1.php +++ b/app/Module/FamilyTreeFavorites/Schema/Migration1.php @@ -16,6 +16,7 @@ namespace Fisharebest\Webtrees\Module\FamilyTreeFavorites\Schema; use Fisharebest\Webtrees\Database; +use Fisharebest\Webtrees\DebugBar; use Fisharebest\Webtrees\Schema\MigrationInterface; use PDOException; @@ -41,6 +42,8 @@ class Migration1 implements MigrationInterface { " ADD KEY news_ix1 (gedcom_id, user_id)" ); } catch (PDOException $ex) { + DebugBar::addThrowable($ex); + // Already updated? } @@ -53,6 +56,8 @@ class Migration1 implements MigrationInterface { " SET f.gedcom_id=g.gedcom_id, f.user_id=u.user_id" ); } catch (PDOException $ex) { + DebugBar::addThrowable($ex); + // Already updated? } @@ -62,6 +67,8 @@ class Migration1 implements MigrationInterface { "DELETE FROM `##favorites` WHERE user_id IS NULL AND gedcom_id IS NULL" ); } catch (PDOException $ex) { + DebugBar::addThrowable($ex); + // Already updated? } @@ -71,6 +78,8 @@ class Migration1 implements MigrationInterface { "ALTER TABLE `##favorites` DROP fv_username, DROP fv_file" ); } catch (PDOException $ex) { + DebugBar::addThrowable($ex); + // Already updated? } @@ -80,6 +89,8 @@ class Migration1 implements MigrationInterface { "RENAME TABLE `##favorites` TO `##favorite`" ); } catch (PDOException $ex) { + DebugBar::addThrowable($ex); + // Already updated? } } |
