X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FDoctrineMigrations%2FVersion20160410190541.php;h=77c78c54357340099216d2c74a07eb1cae6d9a53;hb=f1be7af446052c6fed7033664c6c6350f558961b;hp=f35f54cebd4573b14c9748db7b67c9fc396571a5;hpb=3377c938f8e5bd6af2cd4430494f39a517a7e910;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/DoctrineMigrations/Version20160410190541.php b/app/DoctrineMigrations/Version20160410190541.php index f35f54ce..77c78c54 100644 --- a/app/DoctrineMigrations/Version20160410190541.php +++ b/app/DoctrineMigrations/Version20160410190541.php @@ -28,18 +28,6 @@ class Version20160410190541 extends AbstractMigration implements ContainerAwareI $this->addSql('ALTER TABLE `wallabag_entry` ADD `uuid` LONGTEXT DEFAULT NULL'); } - public function postUp(Schema $schema) - { - $em = $this->container->get('doctrine.orm.entity_manager'); - $repository = $em->getRepository('WallabagCoreBundle:Entry'); - $entries = $repository->findAll(); - - /** @var Entry $entry */ - foreach ($entries as $entry) { - $this->addSql('UPDATE `wallabag_entry` SET `uuid` = "'.uniqid('', true).'" WHERE id = '.$entry->getId()); - } - } - /** * @param Schema $schema */