From 84ec0aa79ae4495e517d4bb62fe1cb23c7e40cd9 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 20 Dec 2023 13:00:34 +0100 Subject: [PATCH] refactor(db): set and improve key/index name Signed-off-by: Arthur Schiwon --- lib/Migration/Version6000Date20220912152700.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Migration/Version6000Date20220912152700.php b/lib/Migration/Version6000Date20220912152700.php index 923e5a15e..67548584d 100644 --- a/lib/Migration/Version6000Date20220912152700.php +++ b/lib/Migration/Version6000Date20220912152700.php @@ -81,9 +81,9 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt 'length' => 64, 'default' => '', ]); - $table->setPrimaryKey(['gid', 'uid'], 'idx_group_members'); - $table->addIndex(['gid']); - $table->addIndex(['uid']); + $table->setPrimaryKey(['gid', 'uid'], 'pk_saml_group_members'); + $table->addIndex(['gid'], 'saml_group_members_gid'); // prefix is added in callee + $table->addIndex(['uid'], 'saml_group_members_uid'); // prefix is added in callee } return $schema; }