]> source.dussan.org Git - nextcloud-server.git/commitdiff
Move authtoken login_name column to varchar(255)
authorJulius Härtl <jus@bitgrid.net>
Fri, 27 Nov 2020 11:54:12 +0000 (12:54 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:51 +0000 (11:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/Migrations/Version21000Date20201120141228.php

index bbf77093fb86b2e8bd1eba9a5eb1e475f3e06316..48c924977d0419502e32263d39af77ebda9a4254 100644 (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');
                }