db); if (!$schema->hasTable('oc_properties')) { $output->info('oc_properties table does not exist.'); return; } $output->info('Update the oc_properties table schema.'); $table = $schema->getTable('oc_properties'); $column = $table->getColumn('propertyvalue'); if ($column->getType() instanceof StringType) { $column->setType(Type::getType('text')); $column->setLength(null); } // Regenerate schema after migrating to it $this->db->migrateToSchema($schema->getWrappedSchema()); } }