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 541fe1d commit 63d10c9Copy full SHA for 63d10c9
webapp/migrations/Version20231124133426.php
@@ -21,7 +21,7 @@ public function up(Schema $schema): void
21
{
22
// this up() migration is auto-generated, please modify it to your needs
23
$this->addSql('CREATE TABLE problem_text_content (probid INT UNSIGNED NOT NULL COMMENT \'Problem ID\', content LONGBLOB NOT NULL COMMENT \'Text content(DC2Type:blobtext)\', PRIMARY KEY(probid)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB COMMENT = \'Stores contents of problem texts\' ');
24
- $this->addSql('INSERT INTO problem_text_content (probid, content) SELECT probid, problemtext FROM problem');
+ $this->addSql('INSERT INTO problem_text_content (probid, content) SELECT probid, problemtext FROM problem WHERE problemtext IS NOT NULL');
25
$this->addSql('ALTER TABLE problem_text_content ADD CONSTRAINT FK_21B6AD6BEF049279 FOREIGN KEY (probid) REFERENCES problem (probid) ON DELETE CASCADE');
26
$this->addSql('ALTER TABLE problem DROP problemtext');
27
}
0 commit comments