3 namespace Application\Migrations
;
5 use Doctrine\DBAL\Migrations\AbstractMigration
;
6 use Doctrine\DBAL\Schema\Schema
;
8 class Version20160410190541
extends AbstractMigration
11 * @param Schema $schema
13 public function up(Schema
$schema)
15 $this->addSql('ALTER TABLE wallabag_entry ADD uuid LONGTEXT DEFAULT NULL');
16 $this->addSql('UPDATE wallabag_entry SET uuid = uuid()');
20 * @param Schema $schema
22 public function down(Schema
$schema)
24 $this->addSql('ALTER TABLE `wallabag_entry` DROP uuid');