+ $this->addSql('UPDATE `wallabag_entry` SET `uuid` = "'.uniqid('', true).'" WHERE id = '.$entry->getId());
}
}
- $em->flush();
}
/**
}
/**
@@ -48,6+45,7 @@ class Version20160410190541 extends AbstractMigration implements ContainerAwareI
*/
public function down(Schema $schema)
{
*/
public function down(Schema $schema)
{
+ $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'sqlite', 'This down migration can\'t be executed on SQLite databases, because SQLite don\'t support DROP COLUMN.');
$this->addSql('ALTER TABLE `wallabag_entry` DROP `uuid`');
}
}
$this->addSql('ALTER TABLE `wallabag_entry` DROP `uuid`');