<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;final class Version20241212105633 extends AbstractMigration{ public function getDescription(): string { return 'Correct tax on product_shop_mode table (apply default taxe)'; } public function up(Schema $schema): void { $this->addSql('UPDATE product_shop_mode SET tax_id = (SELECT MIN(id) FROM tax WHERE rate = 0.1) WHERE tax_id IS NULL'); }}