diff --git a/lib/Migration/Version020311Date20210831180132.php b/lib/Migration/Version020311Date20210831180132.php new file mode 100644 index 00000000..80e50c19 --- /dev/null +++ b/lib/Migration/Version020311Date20210831180132.php @@ -0,0 +1,57 @@ +hasTable('passman_credentials')) { + $table = $schema->getTable('passman_credentials'); + $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 { + } +}