From: Julius Härtl Date: Fri, 25 Sep 2020 10:03:15 +0000 (+0200) Subject: Fix missing authtoken scope X-Git-Tag: v20.0.4~1^2~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7f1f8963e4cf32e9c51d5db4a133dada6e3c6c91;p=nextcloud-server.git Fix missing authtoken scope Signed-off-by: Julius Härtl --- diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php index 6b252d8b830..657ed63e250 100644 --- a/core/Migrations/Version13000Date20170718121200.php +++ b/core/Migrations/Version13000Date20170718121200.php @@ -534,6 +534,11 @@ class Version13000Date20170718121200 extends SimpleMigrationStep { $table->setPrimaryKey(['id']); $table->addUniqueIndex(['token'], 'authtoken_token_index'); $table->addIndex(['last_activity'], 'authtoken_last_activity_idx'); + } else { + $table = $schema->getTable('authtoken'); + $table->addColumn('scope', 'text', [ + 'notnull' => false, + ]); } if (!$schema->hasTable('bruteforce_attempts')) {