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 a00985b8bf..55abb999c5 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 @@ -33,18 +33,21 @@ class ChangesFor325 extends Migration // // delete an old index: - Schema::table( - 'budget_limits', function (Blueprint $table) { - //$table->dropIndex('unique_ci_combo'); - try { + try { + Schema::table( + 'budget_limits', function (Blueprint $table) { + //$table->dropIndex('unique_ci_combo'); $table->dropUnique('unique_ci_combi'); - } catch (QueryException $e) { - // don't care. - } catch (\Exception $e) { - // don't care either. + } + ); + } catch (QueryException $e) { + // don't care. + } catch (PDOException $e) { + // don't care. + } catch (\Exception $e) { + // don't care either. } - ); }