mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-13 15:24: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
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
|
{
|
||||||
|
if ( ! Schema::hasColumn('invitations', 'signature_base64'))
|
||||||
{
|
{
|
||||||
Schema::table('invitations', function($table)
|
Schema::table('invitations', function($table)
|
||||||
{
|
{
|
||||||
@ -29,6 +31,7 @@ class AddInvoiceSignature extends Migration
|
|||||||
|
|
||||||
Schema::table('payment_methods', function($table)
|
Schema::table('payment_methods', function($table)
|
||||||
{
|
{
|
||||||
|
$table->unsignedInteger('account_gateway_token_id')->nullable()->change();
|
||||||
$table->dropForeign('payment_methods_account_gateway_token_id_foreign');
|
$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');;
|
$table->foreign('payment_method_id')->references('id')->on('payment_methods')->onDelete('cascade');;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reverse the migrations.
|
* Reverse the migrations.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user