diff --git a/appinfo/info.xml b/appinfo/info.xml
index d11ee8176..10e5a3eb7 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -10,7 +10,7 @@ Folders can be configured from *Group folders* in the admin settings.
After a folder is created, the admin can give access to the folder to one or more groups, control their write/sharing permissions and assign a quota for the folder.
Note: encrypting the contents of group folders is currently not supported.]]>
- 10.0.0
+ 10.0.1
agpl
Robin Appelman
GroupFolders
diff --git a/lib/Migration/Version1000000Date20210216085047.php b/lib/Migration/Version1000000Date20210216085047.php
new file mode 100644
index 000000000..468db940c
--- /dev/null
+++ b/lib/Migration/Version1000000Date20210216085047.php
@@ -0,0 +1,68 @@
+
+ *
+ * @author Roeland Jago Douma
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see .
+ *
+ */
+
+namespace OCA\GroupFolders\Migration;
+
+use Closure;
+use OCP\DB\ISchemaWrapper;
+use OCP\Migration\IOutput;
+use OCP\Migration\SimpleMigrationStep;
+
+/**
+ * Auto-generated migration step: Please modify to your needs!
+ */
+class Version1000000Date20210216085047 extends SimpleMigrationStep {
+ /**
+ * @param IOutput $output
+ * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
+ * @param array $options
+ * @return null|ISchemaWrapper
+ */
+ public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
+ /** @var ISchemaWrapper $schema */
+ $schema = $schemaClosure();
+
+ $table = $schema->getTable('group_folders_acl');
+ if ($table->hasIndex('groups_folder_acl_file')) {
+ $table->dropIndex('groups_folder_acl_file');
+ }
+
+ $table = $schema->getTable('group_folders_groups');
+ if ($table->hasIndex('group_folder')) {
+ $table->dropIndex('group_folder');
+ }
+
+ $table = $schema->getTable('group_folders_trash');
+ if ($table->hasIndex('groups_folder_trash_folder')) {
+ $table->dropIndex('groups_folder_trash_folder');
+ }
+ if ($table->hasIndex('groups_folder_name')) {
+ $table->dropIndex('groups_folder_name');
+ }
+
+ return $schema;
+ }
+}
diff --git a/lib/Migration/Version102020Date20180806161449.php b/lib/Migration/Version102020Date20180806161449.php
index a7fda82d1..d0cf1ec2d 100644
--- a/lib/Migration/Version102020Date20180806161449.php
+++ b/lib/Migration/Version102020Date20180806161449.php
@@ -56,7 +56,6 @@ public function changeSchema(IOutput $output, \Closure $schemaClosure, array $op
'length' => 64,
]);
$table->setPrimaryKey(['applicable_id']);
- $table->addIndex(['folder_id'], 'group_folder');
$table->addIndex(['group_id'], 'group_folder_value');
$table->addUniqueIndex(['folder_id', 'group_id'], 'groups_folder_group');
}
diff --git a/lib/Migration/Version104000Date20180918132853.php b/lib/Migration/Version104000Date20180918132853.php
index 4a0f2549d..da429782f 100644
--- a/lib/Migration/Version104000Date20180918132853.php
+++ b/lib/Migration/Version104000Date20180918132853.php
@@ -49,8 +49,6 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'length' => 6,
]);
$table->setPrimaryKey(['trash_id']);
- $table->addIndex(['folder_id'], 'groups_folder_trash_folder');
- $table->addIndex(['folder_id', 'name'], 'groups_folder_name');
$table->addUniqueIndex(['folder_id', 'name', 'deleted_time'], 'groups_folder_trash_unique');
}
diff --git a/lib/Migration/Version201000Date20190111132839.php b/lib/Migration/Version201000Date20190111132839.php
index 594ecdffb..b1176ec3d 100644
--- a/lib/Migration/Version201000Date20190111132839.php
+++ b/lib/Migration/Version201000Date20190111132839.php
@@ -50,7 +50,6 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
'notnull' => true,
]);
$table->setPrimaryKey(['acl_id']);
- $table->addIndex(['fileid'], 'groups_folder_acl_file');
$table->addIndex(['mapping_type', 'mapping_id'], 'groups_folder_acl_mapping');
$table->addUniqueIndex(['fileid', 'mapping_type', 'mapping_id'], 'groups_folder_acl_unique');
}