aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20160410190541.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2016-08-24 21:56:02 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-08-24 21:56:02 +0200
commitb1afef30dc5527e5bf57c3eff60b05ee478a6014 (patch)
tree219362bda57464bf3e365bc114c25263fb535b64 /app/DoctrineMigrations/Version20160410190541.php
parentad9304cd7ed139dc59d6f40e6f8f4adcc6923c80 (diff)
downloadwallabag-b1afef30dc5527e5bf57c3eff60b05ee478a6014.tar.gz
wallabag-b1afef30dc5527e5bf57c3eff60b05ee478a6014.tar.zst
wallabag-b1afef30dc5527e5bf57c3eff60b05ee478a6014.zip
Handle share_entry
- share_entry needs to be in the migration too - and it needs a translation
Diffstat (limited to 'app/DoctrineMigrations/Version20160410190541.php')
-rw-r--r--app/DoctrineMigrations/Version20160410190541.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/DoctrineMigrations/Version20160410190541.php b/app/DoctrineMigrations/Version20160410190541.php
index 5030d9c2..4014857b 100644
--- a/app/DoctrineMigrations/Version20160410190541.php
+++ b/app/DoctrineMigrations/Version20160410190541.php
@@ -30,6 +30,7 @@ class Version20160410190541 extends AbstractMigration implements ContainerAwareI
30 public function up(Schema $schema) 30 public function up(Schema $schema)
31 { 31 {
32 $this->addSql('ALTER TABLE `'.$this->getTable('entry').'` ADD `uuid` LONGTEXT DEFAULT NULL'); 32 $this->addSql('ALTER TABLE `'.$this->getTable('entry').'` ADD `uuid` LONGTEXT DEFAULT NULL');
33 $this->addSql("INSERT INTO `".$this->getTable('craue_config_setting')."` (`name`, `value`, `section`) VALUES ('share_public', '1', 'entry')");
33 } 34 }
34 35
35 /** 36 /**
@@ -40,5 +41,6 @@ class Version20160410190541 extends AbstractMigration implements ContainerAwareI
40 $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'sqlite', 'This down migration can\'t be executed on SQLite databases, because SQLite don\'t support DROP COLUMN.'); 41 $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'sqlite', 'This down migration can\'t be executed on SQLite databases, because SQLite don\'t support DROP COLUMN.');
41 42
42 $this->addSql('ALTER TABLE `'.$this->getTable('entry').'` DROP `uuid`'); 43 $this->addSql('ALTER TABLE `'.$this->getTable('entry').'` DROP `uuid`');
44 $this->addSql("DELETE FROM `".$this->getTable('craue_config_setting')."` WHERE `name` = 'share_public'");
43 } 45 }
44} 46}