diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2023-10-04 13:20:57 +0200 |
---|---|---|
committer | Julien Veyssier <julien-nc@posteo.net> | 2023-10-05 14:24:02 +0200 |
commit | d2bc483adf6e714c5960f07989e1247bb96f7190 (patch) | |
tree | 0eb8c9474750b170357fabf0340f6ed5944345d2 /apps | |
parent | 32f984c52084c3d04f579a41b704e8d30c81ed96 (diff) | |
download | nextcloud-server-d2bc483adf6e714c5960f07989e1247bb96f7190.tar.gz nextcloud-server-d2bc483adf6e714c5960f07989e1247bb96f7190.zip |
adjust oauth app
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php | 2 | ||||
-rw-r--r-- | apps/oauth2/lib/Migration/Version011603Date20230620111039.php | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php b/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php index 00d014140e3..f4e08081ce6 100644 --- a/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php +++ b/apps/oauth2/lib/BackgroundJob/CleanupExpiredAuthorizationCode.php @@ -51,7 +51,7 @@ class CleanupExpiredAuthorizationCode extends TimedJob { * @param mixed $argument * @inheritDoc */ - protected function run($argument) { + protected function run($argument): void { try { $this->accessTokenMapper->cleanupExpiredAuthorizationCode(); } catch (Exception $e) { diff --git a/apps/oauth2/lib/Migration/Version011603Date20230620111039.php b/apps/oauth2/lib/Migration/Version011603Date20230620111039.php index 02dd8a38aab..b694963b0f7 100644 --- a/apps/oauth2/lib/Migration/Version011603Date20230620111039.php +++ b/apps/oauth2/lib/Migration/Version011603Date20230620111039.php @@ -40,7 +40,7 @@ class Version011603Date20230620111039 extends SimpleMigrationStep { ) { } - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); @@ -51,6 +51,7 @@ class Version011603Date20230620111039 extends SimpleMigrationStep { $table->addColumn('code_created_at', Types::BIGINT, [ 'notnull' => true, 'default' => 0, + 'unsigned' => true, ]); $dbChanged = true; } @@ -58,6 +59,7 @@ class Version011603Date20230620111039 extends SimpleMigrationStep { $table->addColumn('token_count', Types::BIGINT, [ 'notnull' => true, 'default' => 0, + 'unsigned' => true, ]); $dbChanged = true; } @@ -73,7 +75,7 @@ class Version011603Date20230620111039 extends SimpleMigrationStep { return null; } - public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) { + public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { // we consider that existing access_tokens have already produced at least one oauth token // which prevents cleaning them up $qbUpdate = $this->connection->getQueryBuilder(); |