Skip to content

Commit be9bccf

Browse files
Backport rank cache key size fix
1 parent d8c018e commit be9bccf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
DOMjudge Programming Contest Judging System
22

3+
Version 9.0.1DEV
4+
---------------------------
5+
- Backport adding key size to rankcache table
6+
37
Version 9.0.0 - 5 October 2025
48
---------------------------
59
- API and integration:

webapp/migrations/Version20250309122806.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public function up(Schema $schema): void
2121
{
2222
// this up() migration is auto-generated, please modify it to your needs
2323
$this->addSql('ALTER TABLE rankcache ADD sort_key_public TEXT DEFAULT \'\' NOT NULL COMMENT \'Opaque sort key for public audience.\', ADD sort_key_restricted TEXT DEFAULT \'\' NOT NULL COMMENT \'Opaque sort key for restricted audience.\'');
24-
$this->addSql('CREATE INDEX sortKeyPublic ON rankcache (sort_key_public)');
25-
$this->addSql('CREATE INDEX sortKeyRestricted ON rankcache (sort_key_restricted)');
24+
$this->addSql('CREATE INDEX sortKeyPublic ON rankcache (sort_key_public(768))');
25+
$this->addSql('CREATE INDEX sortKeyRestricted ON rankcache (sort_key_restricted(768))');
2626
}
2727

2828
public function down(Schema $schema): void

0 commit comments

Comments
 (0)