From c5a3de09cdf096d209ac07e9d3999cf32b4d3e0b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 18 Jan 2015 10:33:01 +0100 Subject: [PATCH] Catch a sqlite error. --- .../migrations/2015_01_18_082406_changes_for_325.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/database/migrations/2015_01_18_082406_changes_for_325.php b/app/database/migrations/2015_01_18_082406_changes_for_325.php index 7c86443bb9..5db32ba627 100644 --- a/app/database/migrations/2015_01_18_082406_changes_for_325.php +++ b/app/database/migrations/2015_01_18_082406_changes_for_325.php @@ -1,6 +1,7 @@ dropIndex('unique_ci_combo'); - $table->dropUnique('unique_ci_combi'); - }); + try { + $table->dropUnique('unique_ci_combi'); + } catch (QueryException $e) { + // don't care. + } + } + ); }