]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix missing authtoken scope
authorJulius Härtl <jus@bitgrid.net>
Fri, 25 Sep 2020 10:03:15 +0000 (12:03 +0200)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:12:50 +0000 (11:12 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/Migrations/Version13000Date20170718121200.php

index 6b252d8b830884e3a80a6ddcce518d3764db8091..657ed63e2500abe50e07826bfd07ed57f0421c5d 100644 (file)
@@ -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')) {