hasTable('richdocuments_wopi')) { return null; } $table = $schema->getTable('richdocuments_wopi'); if (!$table->hasColumn('version')) { return null; } $column = $table->getColumn('version'); if ($column->getType()->getName() === 'string') { return null; } $table->changeColumn('version', [ 'type' => Type::getType('string'), 'notnull' => false, 'length' => 1024, 'default' => '0', ]); return $schema; } }