1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00
This commit is contained in:
Hillel Coren 2016-01-24 09:21:20 +02:00
parent fbbc96b1aa
commit c96c91ec88

View File

@ -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])