diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2021-12-09 08:26:10 -0800 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2021-12-09 16:32:53 +0000 |
commit | ac5bc2277ebf0f8988478c5bb231d51bf218bf5b (patch) | |
tree | 65ce59fd8a72ba448aedd81a44eae9e7499461bf /core/Migrations | |
parent | e224401a62f78466d38852c7765dc0811133e268 (diff) | |
download | nextcloud-server-ac5bc2277ebf0f8988478c5bb231d51bf218bf5b.tar.gz nextcloud-server-ac5bc2277ebf0f8988478c5bb231d51bf218bf5b.zip |
Update core/Migrations/Version23000Date20211203110726.php
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'core/Migrations')
-rw-r--r-- | core/Migrations/Version23000Date20211203110726.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/core/Migrations/Version23000Date20211203110726.php b/core/Migrations/Version23000Date20211203110726.php index 33685e872a3..caeb55a4db3 100644 --- a/core/Migrations/Version23000Date20211203110726.php +++ b/core/Migrations/Version23000Date20211203110726.php @@ -44,15 +44,11 @@ class Version23000Date20211203110726 extends SimpleMigrationStep { /** @var ISchemaWrapper $schema */ $schema = $schemaClosure(); - if ($schema->hasTable(self::TABLE_NAME)) { - $table = $schema->getTable(self::TABLE_NAME); - if ($table->hasIndex('user_id')) { - $table->renameIndex('user_id', self::TABLE_NAME . '_user_id_idx'); - return $schema; - } - return null; + $table = $schema->getTable(self::TABLE_NAME); + if ($table->hasIndex('user_id')) { + $table->renameIndex('user_id', self::TABLE_NAME . '_user_id_idx'); + return $schema; } - return null; } } |