<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;final class Version20260616221543 extends AbstractMigration{ public function getDescription(): string { return 'Correcting categories with null shop_id'; } public function up(Schema $schema): void { $this->addSql('UPDATE category c JOIN menu m ON m.id = c.menu_id SET c.shop_id = m.shop_id WHERE c.shop_id IS NULL; '); }}