<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;final class Version20260324171258 extends AbstractMigration{ public function getDescription(): string { return 'Disable loyalties with empty api tokens'; } public function up(Schema $schema): void { $this->addSql("UPDATE loyalty SET enabled = 0 WHERE enabled = 1 AND (loyalty_api_token IS NULL OR TRIM(loyalty_api_token) = '')"); }}