We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a217e commit 4f4e475Copy full SHA for 4f4e475
webapp/migrations/Version20230508120033.php
@@ -19,6 +19,9 @@ public function getDescription(): string
19
20
public function up(Schema $schema): void
21
{
22
+ // Cleanup judgetasks for removed submissions
23
+ // This can happen when a full contest has been removed and the full delete cascade has failed.
24
+ $this->addSql('DELETE from judgetask WHERE submitid not in (SELECT submitid FROM submission)');
25
// this up() migration is auto-generated, please modify it to your needs
26
$this->addSql('ALTER TABLE judgetask ADD CONSTRAINT FK_83142B703605A691 FOREIGN KEY (submitid) REFERENCES submission (submitid) ON DELETE CASCADE');
27
}
0 commit comments