Skip to content

Commit

Permalink
refactor(db): set and improve key/index name
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Schiwon <[email protected]>
  • Loading branch information
blizzz committed Dec 20, 2023
1 parent a5bbde3 commit 84ec0aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Migration/Version6000Date20220912152700.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 84ec0aa

Please sign in to comment.