From de9cf52f28d570722e8b231602a269f679511833 Mon Sep 17 00:00:00 2001 From: skalidindi53 Date: Thu, 18 Jul 2024 09:33:44 -0500 Subject: [PATCH] fix: Removed redundant database indices Signed-off-by: skalidindi53 --- appinfo/info.xml | 2 +- .../Version20000Date20240717180417.php | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 lib/Migration/Version20000Date20240717180417.php diff --git a/appinfo/info.xml b/appinfo/info.xml index 6c5af2463745..260cb01f7d60 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -18,7 +18,7 @@ * 🌉 **Sync with other chat solutions** With [Matterbridge](https://github.com/42wim/matterbridge/) being integrated in Talk, you can easily sync a lot of other chat solutions to Nextcloud Talk and vice-versa. ]]> - 20.0.0-dev.5 + 20.0.0-dev.6 agpl Daniel Calviño Sánchez diff --git a/lib/Migration/Version20000Date20240717180417.php b/lib/Migration/Version20000Date20240717180417.php new file mode 100644 index 000000000000..30f29c5d7a4a --- /dev/null +++ b/lib/Migration/Version20000Date20240717180417.php @@ -0,0 +1,42 @@ +getTable('talk_attendees'); + if ($table->hasIndex('ta_room')) { + $table->dropIndex('ta_room'); + } + + // Remove redundant index talk_bots_convo_id from talk_bots_conversation + $table = $schema->getTable('talk_bots_conversation'); + if ($table->hasIndex('talk_bots_convo_id')) { + $table->dropIndex('talk_bots_convo_id'); + } + + return $schema; + } +}