From: Julius Härtl Date: Fri, 27 Nov 2020 11:54:12 +0000 (+0100) Subject: Move authtoken login_name column to varchar(255) X-Git-Tag: v20.0.4~1^2~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e72e8c6224f12b4a06df691f6138b2eb068ab04;p=nextcloud-server.git Move authtoken login_name column to varchar(255) Signed-off-by: Julius Härtl --- diff --git a/core/Migrations/Version21000Date20201120141228.php b/core/Migrations/Version21000Date20201120141228.php index bbf77093fb8..48c924977d0 100644 --- a/core/Migrations/Version21000Date20201120141228.php +++ b/core/Migrations/Version21000Date20201120141228.php @@ -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'); }