From 17e40bb9ac56ad1c8fa2effc1016d3dccb0930f2 Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Fri, 22 Nov 2024 16:32:08 +0100 Subject: [PATCH] Add migration to fix comment for multipass limit column This was wrong in #2725. --- webapp/migrations/Version20241122152658.php | 36 +++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 webapp/migrations/Version20241122152658.php diff --git a/webapp/migrations/Version20241122152658.php b/webapp/migrations/Version20241122152658.php new file mode 100644 index 0000000000..acf58605ea --- /dev/null +++ b/webapp/migrations/Version20241122152658.php @@ -0,0 +1,36 @@ +addSql('ALTER TABLE problem CHANGE multipass_limit multipass_limit INT UNSIGNED DEFAULT NULL COMMENT \'Optional limit on the number of rounds; defaults to 1 for traditional problems, 2 for multi-pass problems if not specified.\''); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE problem CHANGE multipass_limit multipass_limit INT UNSIGNED DEFAULT NULL COMMENT \'Optional limit on the number of rounds for multi-pass problems; defaults to 2 if not specified.\''); + } + + public function isTransactional(): bool + { + return false; + } +}