addSql('CREATE TABLE mobile_verification_otp (id INT AUTO_INCREMENT NOT NULL, entity_type VARCHAR(20) NOT NULL, entity_id INT NOT NULL, new_mobile VARCHAR(15) NOT NULL, otp_code VARCHAR(6) NOT NULL, expires_at INT NOT NULL, is_used TINYINT NOT NULL, created_at INT NOT NULL, INDEX idx_otp_entity (entity_type, entity_id), PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8mb4'); $this->addSql('ALTER TABLE clinics ADD notification_mobile VARCHAR(15) DEFAULT NULL'); $this->addSql('ALTER TABLE doctors ADD notification_mobile VARCHAR(15) DEFAULT NULL'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('DROP TABLE mobile_verification_otp'); $this->addSql('ALTER TABLE clinics DROP notification_mobile'); $this->addSql('ALTER TABLE doctors DROP notification_mobile'); } }