getTable('partition'); if (!$table->hasColumn('deploy_date')) { $this->addSql('ALTER TABLE `partition` ADD deploy_date DATETIME DEFAULT NULL'); } $cacheContent = $table->getColumn('cache_content'); if ($cacheContent->getType()->getName() !== 'text') { $this->addSql('ALTER TABLE `partition` CHANGE cache_content cache_content LONGTEXT DEFAULT NULL'); } } public function down(Schema $schema): void { $table = $schema->getTable('partition'); if ($table->hasColumn('deploy_date')) { $this->addSql('ALTER TABLE `partition` DROP deploy_date'); } $this->addSql('ALTER TABLE `partition` CHANGE cache_content cache_content VARCHAR(255) DEFAULT NULL'); } }