diff --git a/src/CoreBundle/Migrations/Schema/V200/Version20170625144000.php b/src/CoreBundle/Migrations/Schema/V200/Version20170625144000.php index 80f073df75..4dbe3dd99b 100644 --- a/src/CoreBundle/Migrations/Schema/V200/Version20170625144000.php +++ b/src/CoreBundle/Migrations/Schema/V200/Version20170625144000.php @@ -144,8 +144,6 @@ class Version20170625144000 extends AbstractMigrationChamilo $this->addSql('ALTER TABLE c_student_publication_comment CHANGE work_id work_id INT DEFAULT NULL'); $this->addSql('ALTER TABLE c_student_publication_comment CHANGE user_id user_id INT DEFAULT NULL'); - $this->addSql('DELETE FROM c_student_publication_comment WHERE work_id NOT IN (SELECT iid FROM c_student_publication)'); - if ($table->hasIndex('work')) { $this->addSql('DROP INDEX work ON c_student_publication_comment'); }