Move authtoken login_name column to varchar(255)

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-11-27 12:54:12 +01:00
parent 7c9fcc434f
commit 8e72e8c622
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 8 additions and 0 deletions

View File

@ -14,6 +14,14 @@ class Version21000Date20201120141228 extends SimpleMigrationStep {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
if ($schema->hasTable('authtoken')) {
$table = $schema->getTable('authtoken');
$loginNameColumn = $table->getColumn('login_name');
if ($loginNameColumn->getLength() !== 255) {
$loginNameColumn->setLength(255);
}
}
if ($schema->hasTable('dav_job_status')) {
$schema->dropTable('dav_job_status');
}