Fix for self host database migrations
This commit is contained in:
parent
ee88d63fc2
commit
dff371e7bd
1 changed files with 4 additions and 2 deletions
|
|
@ -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.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue