aboutsummaryrefslogtreecommitdiffstats
path: root/apps/oauth2/lib/Migration/Version011603Date20230620111039.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/oauth2/lib/Migration/Version011603Date20230620111039.php')
-rw-r--r--apps/oauth2/lib/Migration/Version011603Date20230620111039.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/oauth2/lib/Migration/Version011603Date20230620111039.php b/apps/oauth2/lib/Migration/Version011603Date20230620111039.php
index 06cc4db5ab3..02dd8a38aab 100644
--- a/apps/oauth2/lib/Migration/Version011603Date20230620111039.php
+++ b/apps/oauth2/lib/Migration/Version011603Date20230620111039.php
@@ -47,8 +47,8 @@ class Version011603Date20230620111039 extends SimpleMigrationStep {
if ($schema->hasTable('oauth2_access_tokens')) {
$table = $schema->getTable('oauth2_access_tokens');
$dbChanged = false;
- if (!$table->hasColumn('created_at')) {
- $table->addColumn('created_at', Types::BIGINT, [
+ if (!$table->hasColumn('code_created_at')) {
+ $table->addColumn('code_created_at', Types::BIGINT, [
'notnull' => true,
'default' => 0,
]);
@@ -62,7 +62,7 @@ class Version011603Date20230620111039 extends SimpleMigrationStep {
$dbChanged = true;
}
if (!$table->hasIndex('oauth2_tk_c_created_idx')) {
- $table->addIndex(['token_count', 'created_at'], 'oauth2_tk_c_created_idx');
+ $table->addIndex(['token_count', 'code_created_at'], 'oauth2_tk_c_created_idx');
$dbChanged = true;
}
if ($dbChanged) {