mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01: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
|
||||
DB::table('invoice_statuses')->insert([
|
||||
'id' => 6,
|
||||
'name' => 'Paid'
|
||||
]);
|
||||
if (DB::table('invoice_statuses')->count() == 5) {
|
||||
DB::table('invoice_statuses')->insert([
|
||||
'id' => 6,
|
||||
'name' => 'Paid'
|
||||
]);
|
||||
}
|
||||
|
||||
DB::table('invoices')
|
||||
->whereIn('invoice_status_id', [4, 5])
|
||||
|
Loading…
Reference in New Issue
Block a user