summaryrefslogtreecommitdiffstats
path: root/core/Migrations/Version23000Date20210930122352.php
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2021-12-03 20:02:03 +0000
committerChristopher Ng <chrng8@gmail.com>2021-12-03 20:29:53 +0000
commite224401a62f78466d38852c7765dc0811133e268 (patch)
treee031a96e16910ae5d0ae4d88980b6d64d341b896 /core/Migrations/Version23000Date20210930122352.php
parentdcec9fef736a2424dd08b5bf6feb416203eb4264 (diff)
downloadnextcloud-server-e224401a62f78466d38852c7765dc0811133e268.tar.gz
nextcloud-server-e224401a62f78466d38852c7765dc0811133e268.zip
Fix relation "user_id" already exists migration error
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/Migrations/Version23000Date20210930122352.php')
-rw-r--r--core/Migrations/Version23000Date20210930122352.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Migrations/Version23000Date20210930122352.php b/core/Migrations/Version23000Date20210930122352.php
index e3eb9af7eba..e8400377b3e 100644
--- a/core/Migrations/Version23000Date20210930122352.php
+++ b/core/Migrations/Version23000Date20210930122352.php
@@ -60,7 +60,7 @@ class Version23000Date20210930122352 extends SimpleMigrationStep {
'notnull' => true,
]);
$table->setPrimaryKey(['id']);
- $table->addUniqueIndex(['user_id'], 'user_id');
+ $table->addUniqueIndex(['user_id'], self::TABLE_NAME . '_user_id_idx');
return $schema;
}