diff --git a/app/Migrations/Schema/V110/Version20160808110200.php b/app/Migrations/Schema/V110/Version20160808110200.php new file mode 100644 index 0000000000..6182987a12 --- /dev/null +++ b/app/Migrations/Schema/V110/Version20160808110200.php @@ -0,0 +1,29 @@ +addSql("UPDATE c_forum_post SET post_parent_id = NULL WHERE post_parent_id = 0"); + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + $this->addSql('UPDATE c_forum_post SET post_parent_id = 0 WHERE post_parent_id = NULL'); + } +}