-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
Index is outdated by PR 50781 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
/** | ||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors | ||
* SPDX-License-Identifier: AGPL-3.0-or-later | ||
*/ | ||
namespace OC\Core\Migrations; | ||
|
||
use OCP\DB\ISchemaWrapper; | ||
use OCP\Migration\IOutput; | ||
use OCP\Migration\SimpleMigrationStep; | ||
|
||
/** | ||
* Drop index fs_id_storage_size | ||
* | ||
* Added in https://github.com/nextcloud/server/pull/29118 | ||
* Matching request changed in https://github.com/nextcloud/server/pull/50781 | ||
*/ | ||
#[DropIndex(table: 'filecache', type: IndexType::INDEX, description: 'remove index fs_id_storage_size (concurrent with PRIMARY KEY)')] | ||
Check failure on line 19 in core/Migrations/Version31000Date20250213102442.php
|
||
class Version31000Date20250213102442 extends SimpleMigrationStep { | ||
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { | ||
Check failure on line 21 in core/Migrations/Version31000Date20250213102442.php
|
||
/** @var ISchemaWrapper $schema */ | ||
$schema = $schemaClosure(); | ||
|
||
$table = $schema->getTable('filecache'); | ||
|
||
// Index added in Version13000Date20170718121200 | ||
if ($table->hasIndex('fs_id_storage_size')) { | ||
$table->dropIndex('fs_id_storage_size'); | ||
} | ||
|
||
return $schema; | ||
} | ||
} |