]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/DoctrineMigrations/Version20160410190541.php
Change share entry behavior
[github/wallabag/wallabag.git] / app / DoctrineMigrations / Version20160410190541.php
index f35f54cebd4573b14c9748db7b67c9fc396571a5..77c78c54357340099216d2c74a07eb1cae6d9a53 100644 (file)
@@ -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
      */