Fix for self host database migrations

This commit is contained in:
Hillel Coren 2016-11-29 21:06:28 +02:00
parent ee88d63fc2
commit dff371e7bd

View File

@ -34,11 +34,13 @@ class CreateGatewayTypes extends Migration
$table->unsignedInteger('min_limit')->nullable();
$table->unsignedInteger('max_limit')->nullable();
});
Schema::table('account_gateway_settings', function($table)
{
$table->foreign('account_id')->references('id')->on('accounts')->onDelete('cascade');
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
$table->foreign('gateway_type_id')->references('id')->on('gateway_types')->onDelete('cascade');
});
Schema::table('payment_types', function($table)
@ -54,7 +56,7 @@ class CreateGatewayTypes extends Migration
});
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
}
/**
* Reverse the migrations.
*