diff --git a/src/main/java/org/olat/upgrade/_spring/databaseUpgradeContext.xml b/src/main/java/org/olat/upgrade/_spring/databaseUpgradeContext.xml
index 38c169b3a1326e4135019e0e528ec9035d72a967..1254538cd1c0bd2dd215a660d6b31adf89e4c4d8 100644
--- a/src/main/java/org/olat/upgrade/_spring/databaseUpgradeContext.xml
+++ b/src/main/java/org/olat/upgrade/_spring/databaseUpgradeContext.xml
@@ -196,6 +196,10 @@
 					<constructor-arg index="0" value="OLAT_14.1.0" />
 					<property name="alterDbStatements" value="alter_14_0_x_to_14_1_0.sql" />
 				</bean>
+				<bean id="database_upgrade_14_1_2" class="org.olat.upgrade.DatabaseUpgrade">
+					<constructor-arg index="0" value="OLAT_14.1.2" />
+					<property name="alterDbStatements" value="alter_14_1_x_to_14_1_2.sql" />
+				</bean>
 			</list>
 		</property>
 	</bean>
diff --git a/src/main/resources/database/mysql/alter_14_1_x_to_14_1_2.sql b/src/main/resources/database/mysql/alter_14_1_x_to_14_1_2.sql
new file mode 100644
index 0000000000000000000000000000000000000000..49f91cfd4f5687c49d99cc9f16dbb25b54dec99a
--- /dev/null
+++ b/src/main/resources/database/mysql/alter_14_1_x_to_14_1_2.sql
@@ -0,0 +1,2 @@
+drop index f_m_path_keys_idx on o_vfs_metadata;
+drop index f_m_filename_idx on o_vfs_metadata;
\ No newline at end of file
diff --git a/src/main/resources/database/mysql/setupDatabase.sql b/src/main/resources/database/mysql/setupDatabase.sql
index 2fefd7f8f61334254b088b47f6ba1faccbf303c3..5f619e2b8cd9de53a99aa63044f1c2d7b85f270c 100644
--- a/src/main/resources/database/mysql/setupDatabase.sql
+++ b/src/main/resources/database/mysql/setupDatabase.sql
@@ -3769,9 +3769,7 @@ alter table o_vfs_metadata add constraint fmeta_to_author_idx foreign key (fk_lo
 alter table o_vfs_metadata add constraint fmeta_to_lockid_idx foreign key (fk_author) references o_bs_identity (id);
 alter table o_vfs_metadata add constraint fmeta_to_lic_type_idx foreign key (fk_license_type) references o_lic_license_type (id);
 alter table o_vfs_metadata add constraint fmeta_to_parent_idx foreign key (fk_parent) references o_vfs_metadata (id);
-create index f_m_path_keys_idx on o_vfs_metadata (f_m_path_keys(100));
 create index f_m_rel_path_idx on o_vfs_metadata (f_relative_path(255));
-create index f_m_filename_idx on o_vfs_metadata (f_filename(255));
 create index f_m_file_idx on o_vfs_metadata (f_relative_path(255),f_filename(255));
 create index f_m_uuid_idx on o_vfs_metadata (f_uuid);
 
diff --git a/src/main/resources/database/oracle/alter_14_1_x_to_14_1_2.sql b/src/main/resources/database/oracle/alter_14_1_x_to_14_1_2.sql
new file mode 100644
index 0000000000000000000000000000000000000000..eaa37c6d91421e5b8fe66c028d7a6e5b3bc40d5f
--- /dev/null
+++ b/src/main/resources/database/oracle/alter_14_1_x_to_14_1_2.sql
@@ -0,0 +1,2 @@
+drop index f_m_path_keys_idx;
+drop index f_m_filename_idx;
\ No newline at end of file
diff --git a/src/main/resources/database/oracle/setupDatabase.sql b/src/main/resources/database/oracle/setupDatabase.sql
index 1b0d9bfc6105364544fce36cee1c26f71be12f55..9da5127079a41136b1331ab0df86f53d4861a69b 100644
--- a/src/main/resources/database/oracle/setupDatabase.sql
+++ b/src/main/resources/database/oracle/setupDatabase.sql
@@ -3791,9 +3791,7 @@ alter table o_vfs_metadata add constraint fmeta_to_lic_type_idx foreign key (fk_
 create index idx_fmeta_to_lic_type_idx on o_vfs_metadata (fk_license_type);
 alter table o_vfs_metadata add constraint fmeta_to_parent_idx foreign key (fk_parent) references o_vfs_metadata (id);
 create index idx_fmeta_to_parent_idx on o_vfs_metadata (fk_parent);
-create index f_m_path_keys_idx on o_vfs_metadata (f_m_path_keys);
 create index f_m_rel_path_idx on o_vfs_metadata (f_relative_path);
-create index f_m_filename_idx on o_vfs_metadata (f_filename);
 create index f_m_file_idx on o_vfs_metadata (f_relative_path,f_filename);
 create index f_m_uuid_idx on o_vfs_metadata (f_uuid);
 
diff --git a/src/main/resources/database/postgresql/alter_14_1_x_to_14_1_2.sql b/src/main/resources/database/postgresql/alter_14_1_x_to_14_1_2.sql
new file mode 100644
index 0000000000000000000000000000000000000000..2be1aeb8d2c086b843dd81cd2998d5021b89e587
--- /dev/null
+++ b/src/main/resources/database/postgresql/alter_14_1_x_to_14_1_2.sql
@@ -0,0 +1,2 @@
+drop index if exists f_m_path_keys_idx;
+drop index if exists f_m_filename_idx;
\ No newline at end of file
diff --git a/src/main/resources/database/postgresql/setupDatabase.sql b/src/main/resources/database/postgresql/setupDatabase.sql
index 6d690806ee910a51b42e61dc946cf7353e8ebefe..1a40cb4c398345e0ba90bbd1ee7784e708733800 100644
--- a/src/main/resources/database/postgresql/setupDatabase.sql
+++ b/src/main/resources/database/postgresql/setupDatabase.sql
@@ -3754,9 +3754,7 @@ alter table o_vfs_metadata add constraint fmeta_to_lic_type_idx foreign key (fk_
 create index idx_fmeta_to_lic_type_idx on o_vfs_metadata (fk_license_type);
 alter table o_vfs_metadata add constraint fmeta_to_parent_idx foreign key (fk_parent) references o_vfs_metadata (id);
 create index idx_fmeta_to_parent_idx on o_vfs_metadata (fk_parent);
-create index f_m_path_keys_idx on o_vfs_metadata (f_m_path_keys);
 create index f_m_rel_path_idx on o_vfs_metadata (f_relative_path);
-create index f_m_filename_idx on o_vfs_metadata (f_filename);
 create index f_m_file_idx on o_vfs_metadata (f_relative_path,f_filename);
 create index f_m_uuid_idx on o_vfs_metadata (f_uuid);