diff --git a/database/migrations/2016_04_18_174135_add_page_size.php b/database/migrations/2016_04_18_174135_add_page_size.php index 7bd9c895a5..0b17124885 100644 --- a/database/migrations/2016_04_18_174135_add_page_size.php +++ b/database/migrations/2016_04_18_174135_add_page_size.php @@ -63,7 +63,7 @@ class AddPageSize extends Migration }); Schema::table('expenses', function ($table) { - $table->dropForeign('expenses_expense_category_id_foreign'); + //$table->dropForeign('expenses_expense_category_id_foreign'); $table->dropColumn('expense_category_id'); }); diff --git a/database/migrations/2016_04_23_182223_payments_changes.php b/database/migrations/2016_04_23_182223_payments_changes.php index 28fc2d58f1..5f0994d62d 100644 --- a/database/migrations/2016_04_23_182223_payments_changes.php +++ b/database/migrations/2016_04_23_182223_payments_changes.php @@ -109,8 +109,7 @@ class PaymentsChanges extends Migration Schema::table('account_gateway_tokens', function($table) { $table->unsignedInteger('default_payment_method_id')->nullable(); - $table->foreign('default_payment_method_id')->references('id')->on('payment_methods'); - + //$table->foreign('default_payment_method_id')->references('id')->on('payment_methods'); }); } @@ -134,7 +133,7 @@ class PaymentsChanges extends Migration $table->dropColumn('gateway_error'); $table->dropColumn('email'); - $table->dropForeign('payments_payment_method_id_foreign'); + //$table->dropForeign('payments_payment_method_id_foreign'); $table->dropColumn('payment_method_id'); }); @@ -164,7 +163,7 @@ class PaymentsChanges extends Migration Schema::table('account_gateway_tokens', function($table) { - $table->dropForeign('account_gateway_tokens_default_payment_method_id_foreign'); + //$table->dropForeign('account_gateway_tokens_default_payment_method_id_foreign'); $table->dropColumn('default_payment_method_id'); });