mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-16 10:14:37 -04:00
Fix for #647
This commit is contained in:
parent
fbbc96b1aa
commit
c96c91ec88
@ -18,10 +18,12 @@ class AddQuoteToInvoiceOption extends Migration
|
|||||||
});
|
});
|
||||||
|
|
||||||
// we need to create the last status to resolve a foreign key constraint
|
// we need to create the last status to resolve a foreign key constraint
|
||||||
DB::table('invoice_statuses')->insert([
|
if (DB::table('invoice_statuses')->count() == 5) {
|
||||||
'id' => 6,
|
DB::table('invoice_statuses')->insert([
|
||||||
'name' => 'Paid'
|
'id' => 6,
|
||||||
]);
|
'name' => 'Paid'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
DB::table('invoices')
|
DB::table('invoices')
|
||||||
->whereIn('invoice_status_id', [4, 5])
|
->whereIn('invoice_status_id', [4, 5])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user