summaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version13000Date20170718121200.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-25 12:03:15 +0200
committerJulius Härtl <jus@bitgrid.net>2020-12-09 12:13:32 +0100
commit83f4f480ab72c6e90545f0529c5ad1c7d2090f2f (patch)
tree1d4d5f058a9f62bcd0a0522db95a6e1f1eeba27f /core/Migrations/Version13000Date20170718121200.php
parent7518f67f33af5b90721c898367b0f3a569201a14 (diff)
downloadnextcloud-server-83f4f480ab72c6e90545f0529c5ad1c7d2090f2f.tar.gz
nextcloud-server-83f4f480ab72c6e90545f0529c5ad1c7d2090f2f.zip
Fix missing authtoken scope
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/Migrations/Version13000Date20170718121200.php')
-rw-r--r--core/Migrations/Version13000Date20170718121200.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/Migrations/Version13000Date20170718121200.php b/core/Migrations/Version13000Date20170718121200.php
index f830eebbbd2..9a1815c09a5 100644
--- a/core/Migrations/Version13000Date20170718121200.php
+++ b/core/Migrations/Version13000Date20170718121200.php
@@ -549,6 +549,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')) {