hasTable('passman_credentials')) { $table = $schema->getTable('passman_credentials'); if ($table->hasIndex('passman_credential_label_index')) { $table->dropIndex('passman_credential_label_index'); } $labelColumn = $table->getColumn('label'); if ($labelColumn->getLength() < 2048 || $labelColumn->getType() !== Type::getType('string')) { $table->changeColumn('label', [ 'type' => Type::getType('string'), 'length' => 2048 ]); } } return $schema; } /** * @param IOutput $output * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` * @param array $options */ public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { } }