mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
Update core/Migrations/Version23000Date20211203110726.php
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com> Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
e224401a62
commit
ac5bc2277e
1 changed files with 4 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue