- public function postUp(Schema $schema)
- {
- $em = $this->container->get('doctrine.orm.entity_manager');
- $repository = $em->getRepository('WallabagCoreBundle:Entry');
- $entries = $repository->findAll();
+ $this->skipIf($entryTable->hasColumn('uid') || $entryTable->hasColumn('uuid'), 'It seems that you already played this migration.');
+
+ $entryTable->addColumn('uid', 'string', [
+ 'notnull' => false,
+ 'length' => 23,
+ ]);
+
+ $sharePublic = $this->container
+ ->get('doctrine.orm.default_entity_manager')
+ ->getConnection()
+ ->fetchArray('SELECT * FROM ' . $this->getTable('craue_config_setting') . " WHERE name = 'share_public'");