mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-10 10:44:36 -04:00
Fix for migration
This commit is contained in:
parent
cfe35723ea
commit
ea6fdeefa8
@ -11,6 +11,8 @@ class AddInvoiceSignature extends Migration
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if ( ! Schema::hasColumn('invitations', 'signature_base64'))
|
||||
{
|
||||
Schema::table('invitations', function($table)
|
||||
{
|
||||
@ -29,6 +31,7 @@ class AddInvoiceSignature extends Migration
|
||||
|
||||
Schema::table('payment_methods', function($table)
|
||||
{
|
||||
$table->unsignedInteger('account_gateway_token_id')->nullable()->change();
|
||||
$table->dropForeign('payment_methods_account_gateway_token_id_foreign');
|
||||
});
|
||||
|
||||
@ -47,6 +50,7 @@ class AddInvoiceSignature extends Migration
|
||||
$table->foreign('payment_method_id')->references('id')->on('payment_methods')->onDelete('cascade');;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
|
Loading…
x
Reference in New Issue
Block a user