From d0545b6bd6edc38bf06604900b1e20a60e7c8583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Sun, 10 Apr 2016 21:48:11 +0200 Subject: Add migration --- app/DoctrineMigrations/Version20160410190541.php | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 app/DoctrineMigrations/Version20160410190541.php (limited to 'app') diff --git a/app/DoctrineMigrations/Version20160410190541.php b/app/DoctrineMigrations/Version20160410190541.php new file mode 100644 index 00000000..b30a898c --- /dev/null +++ b/app/DoctrineMigrations/Version20160410190541.php @@ -0,0 +1,26 @@ +addSql('ALTER TABLE wallabag_entry ADD uuid LONGTEXT DEFAULT NULL'); + $this->addSql('UPDATE wallabag_entry SET uuid = uuid()'); + } + + /** + * @param Schema $schema + */ + public function down(Schema $schema) + { + $this->addSql('ALTER TABLE `wallabag_entry` DROP uuid'); + } +} -- cgit v1.2.3