Fix missing authtoken scope

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-09-25 12:03:15 +02:00
parent 5d2988e3bd
commit 7f1f8963e4
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 5 additions and 0 deletions

View 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')) {