From 8db584cf06b32e15dd751712ab5fc94673d551a9 Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Sun, 30 Nov 2025 13:15:17 +0100 Subject: [PATCH] Backport rank cache key size fix --- ChangeLog | 4 ++++ webapp/migrations/Version20250309122806.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f43ba9d5ae..ae141ea3e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ DOMjudge Programming Contest Judging System +Version 9.0.1DEV +--------------------------- + - Backport adding key size to rankcache table + Version 9.0.0 - 5 October 2025 --------------------------- - API and integration: diff --git a/webapp/migrations/Version20250309122806.php b/webapp/migrations/Version20250309122806.php index d61567510e..77b73b16bc 100644 --- a/webapp/migrations/Version20250309122806.php +++ b/webapp/migrations/Version20250309122806.php @@ -21,8 +21,8 @@ public function up(Schema $schema): void { // this up() migration is auto-generated, please modify it to your needs $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.\''); - $this->addSql('CREATE INDEX sortKeyPublic ON rankcache (sort_key_public)'); - $this->addSql('CREATE INDEX sortKeyRestricted ON rankcache (sort_key_restricted)'); + $this->addSql('CREATE INDEX sortKeyPublic ON rankcache (sort_key_public(768))'); + $this->addSql('CREATE INDEX sortKeyRestricted ON rankcache (sort_key_restricted(768))'); } public function down(Schema $schema): void