mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Fix for self host database migrations
This commit is contained in:
parent
ee88d63fc2
commit
dff371e7bd
@ -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…
x
Reference in New Issue
Block a user