mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 18:14:36 -04:00
Set null for company tax_data
This commit is contained in:
parent
cc1ba530d2
commit
6c0c0d9372
@ -1,8 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use App\Models\Company;
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
return new class extends Migration
|
return new class extends Migration
|
||||||
{
|
{
|
||||||
@ -24,6 +25,12 @@ return new class extends Migration
|
|||||||
$table->dropColumn('tax_all_products');
|
$table->dropColumn('tax_all_products');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Company::query()
|
||||||
|
->cursor()
|
||||||
|
->each(function ($company) {
|
||||||
|
$company->tax_data = null;
|
||||||
|
$company->save();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user