Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-07-05 09:57:33 +0300
committerdartcafe <github@dartcafe.de>2021-07-05 09:57:33 +0300
commiteeaac17a2864f5741d827b67ed4a0f1cf9aefc70 (patch)
tree95f5c6f9c04a18b490609e2ae7c284ee0154ea23 /lib/Migration
parent1f3b494cd60d9972b05ed273e91efdc3754c74ec (diff)
Update version and tidy
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib/Migration')
-rw-r--r--lib/Migration/CreateIndices.php21
-rw-r--r--lib/Migration/RemoveIndices.php3
2 files changed, 0 insertions, 24 deletions
diff --git a/lib/Migration/CreateIndices.php b/lib/Migration/CreateIndices.php
index 623fcd93..6a3dbb84 100644
--- a/lib/Migration/CreateIndices.php
+++ b/lib/Migration/CreateIndices.php
@@ -31,27 +31,6 @@ use OCP\Migration\IOutput;
class CreateIndices implements IRepairStep {
- // private const INDICES = [
- // 'polls_options' => ['name' => 'UNIQ_options', 'unique' => true, 'columns' => ['poll_id', 'poll_option_text', 'timestamp']],
- // 'polls_log' => ['name' => 'UNIQ_unprocessed', 'unique' => true, 'columns' => ['processed', 'poll_id', 'user_id', 'message_id']],
- // 'polls_notif' => ['name' => 'UNIQ_subscription', 'unique' => true, 'columns' => ['poll_id', 'user_id']],
- // 'polls_share' => ['name' => 'UNIQ_shares', 'unique' => true, 'columns' => ['poll_id', 'user_id']],
- // 'polls_votes' => ['name' => 'UNIQ_votes', 'unique' => true, 'columns' => ['poll_id', 'user_id', 'vote_option_text']],
- // 'polls_preferences' => ['name' => 'UNIQ_preferences', 'unique' => true, 'columns' => ['user_id']],
- // 'polls_watch' => ['name' => 'UNIQ_watch', 'unique' => true, 'columns' => ['poll_id', 'table']],
- // ];
- //
- // private const PARENT_TABLE = 'polls_polls';
- //
- // private const CHILD_TABLES = [
- // 'polls_comments',
- // 'polls_log',
- // 'polls_notif',
- // 'polls_options',
- // 'polls_share',
- // 'polls_votes',
- // ];
-
/** @var Connection */
private $connection;
diff --git a/lib/Migration/RemoveIndices.php b/lib/Migration/RemoveIndices.php
index 79564fc8..d1617f99 100644
--- a/lib/Migration/RemoveIndices.php
+++ b/lib/Migration/RemoveIndices.php
@@ -48,14 +48,11 @@ class RemoveIndices implements IRepairStep {
public function run(IOutput $output): void {
foreach (TableSchema::FK_CHILD_TABLES as $tableName) {
- // $output->info('"polls" - Removing foreign keys from '. $tableName);
$this->removeForeignKeys($tableName);
- // $output->info('"polls" - Removing indices in '. $tableName);
$this->removeGenericIndices($tableName);
}
foreach (TableSchema::UNIQUE_INDICES as $tableName => $value) {
- // $output->info('"polls" - Removing unique indices in '. $tableName);
$this->removeUniqueIndices($tableName);
}
}