You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this up() migration is auto-generated, please modify it to your needs
23
+
$this->addSql('ALTER TABLE problem ADD types INT NOT NULL COMMENT \'Bitmask of problem types, default is pass-fail.\'');
24
+
$this->addSql('UPDATE problem SET types = 1');
25
+
$this->addSql('UPDATE problem SET types = 5 WHERE is_multipass_problem = 1');
26
+
$this->addSql('UPDATE problem SET types = 9 WHERE combined_run_compare = 1');
27
+
$this->addSql('UPDATE problem SET types = 13 WHERE combined_run_compare = 1 AND is_multipass_problem = 1');
28
+
$this->addSql('ALTER TABLE problem DROP combined_run_compare, DROP is_multipass_problem');
29
+
}
30
+
31
+
publicfunctiondown(Schema$schema): void
32
+
{
33
+
// this down() migration is auto-generated, please modify it to your needs
34
+
$this->addSql('ALTER TABLE problem ADD combined_run_compare TINYINT(1) DEFAULT 0 NOT NULL COMMENT \'Use the exit code of the run script to compute the verdict\', ADD is_multipass_problem TINYINT(1) DEFAULT 0 NOT NULL COMMENT \'Whether this problem is a multi-pass problem.\', DROP types');
0 commit comments