Update migration self-hosted

This commit is contained in:
fogelito 2025-05-29 15:37:08 +03:00
parent d7653c68ce
commit 0097a0edcd

View file

@ -145,17 +145,16 @@ class V22 extends Migration
$this->dbForProject->purgeCachedCollection($id);
break;
case 'memberships':
// $indexes = [
// '_key_roles',
// ];
// foreach ($indexes as $index) {
// try {
// $this->createIndexFromCollection($this->dbForProject, $id, $index);
// } catch (Throwable $th) {
// Console::warning("Failed to create index \"$index\" from {$id}: {$th->getMessage()}");
// }
// }
// $this->dbForProject->purgeCachedCollection($id);
$indexes = [
'_key_roles',
];
foreach ($indexes as $index) {
try {
$this->dbForProject->deleteIndex($id, $index);
} catch (Throwable $th) {
Console::warning("Failed to delete index \"$index\" from {$id}: {$th->getMessage()}");
}
}
break;
case 'migrations':
$attributes = [