fix(core): add fs_name_hash index to migration

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/45129/head
Varun Patil 2024-04-30 12:23:41 +07:00
parent fbb4518a05
commit 84017a9ad7
1 changed files with 1 additions and 0 deletions

@ -261,6 +261,7 @@ class Version13000Date20170718121200 extends SimpleMigrationStep {
$table->addIndex(['storage', 'size', 'fileid'], 'fs_storage_size'); $table->addIndex(['storage', 'size', 'fileid'], 'fs_storage_size');
$table->addIndex(['fileid', 'storage', 'size'], 'fs_id_storage_size'); $table->addIndex(['fileid', 'storage', 'size'], 'fs_id_storage_size');
$table->addIndex(['parent'], 'fs_parent'); $table->addIndex(['parent'], 'fs_parent');
$table->addIndex(['name'], 'fs_name_hash');
$table->addIndex(['mtime'], 'fs_mtime'); $table->addIndex(['mtime'], 'fs_mtime');
$table->addIndex(['size'], 'fs_size'); $table->addIndex(['size'], 'fs_size');
if (!$schema->getDatabasePlatform() instanceof PostgreSQL94Platform) { if (!$schema->getDatabasePlatform() instanceof PostgreSQL94Platform) {