mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove migration for tax models
This commit is contained in:
parent
ed0cb15013
commit
2373f6e508
@ -12,18 +12,18 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Company::whereNotNull('tax_data')
|
// Company::whereNotNull('tax_data')
|
||||||
->cursor()
|
// ->cursor()
|
||||||
->each(function($company){
|
// ->each(function($company){
|
||||||
|
|
||||||
if($company->tax_data?->version == 'alpha')
|
// if($company->tax_data?->version == 'alpha')
|
||||||
{
|
// {
|
||||||
|
|
||||||
$company->update(['tax_data' => new \App\DataMapper\Tax\TaxModel($company->tax_data)]);
|
// $company->update(['tax_data' => new \App\DataMapper\Tax\TaxModel($company->tax_data)]);
|
||||||
|
|
||||||
}
|
// }
|
||||||
|
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user