From 5f48f138909a5c4e6f40f2e39e9efba54d5ee98a Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 29 Jan 2015 17:44:13 +0100 Subject: [PATCH] Exceptions for stupid sqlite. --- .../migrations/2015_01_18_082406_changes_for_v325.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/database/migrations/2015_01_18_082406_changes_for_v325.php b/app/database/migrations/2015_01_18_082406_changes_for_v325.php index 768cbe6aa4..5015a35e21 100644 --- a/app/database/migrations/2015_01_18_082406_changes_for_v325.php +++ b/app/database/migrations/2015_01_18_082406_changes_for_v325.php @@ -56,7 +56,15 @@ class ChangesForV325 extends Migration } ); - DB::update('ALTER TABLE `transaction_journals` MODIFY `description` VARCHAR(1024)'); + try { + DB::update('ALTER TABLE `transaction_journals` MODIFY `description` VARCHAR(1024)'); + } catch (QueryException $e) { + // don't care. + } catch (PDOException $e) { + // don't care. + } catch (\Exception $e) { + // don't care either. + } }