diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-09-28 10:02:31 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-09-28 10:04:36 +0200 |
commit | 084fb0d303efc6edd0bfbf43d96b6cbe48acb2b8 (patch) | |
tree | 4fa9a2f8dba11f8478884823a382e1017410999a /app | |
parent | 92fa168344c51cd1c5835678e649b05cb7a2d030 (diff) | |
download | wallabag-084fb0d303efc6edd0bfbf43d96b6cbe48acb2b8.tar.gz wallabag-084fb0d303efc6edd0bfbf43d96b6cbe48acb2b8.tar.zst wallabag-084fb0d303efc6edd0bfbf43d96b6cbe48acb2b8.zip |
Some fixes about upgrade from 2.0.x -> 2.1.0
Diffstat (limited to 'app')
-rw-r--r-- | app/DoctrineMigrations/Version20160812120952.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/DoctrineMigrations/Version20160812120952.php b/app/DoctrineMigrations/Version20160812120952.php index 9adfdc8b..a8d3bcf2 100644 --- a/app/DoctrineMigrations/Version20160812120952.php +++ b/app/DoctrineMigrations/Version20160812120952.php | |||
@@ -29,7 +29,11 @@ class Version20160812120952 extends AbstractMigration implements ContainerAwareI | |||
29 | */ | 29 | */ |
30 | public function up(Schema $schema) | 30 | public function up(Schema $schema) |
31 | { | 31 | { |
32 | $this->addSql('ALTER TABLE '.$this->getTable('oauth2_clients').' ADD name longtext COLLATE \'utf8_unicode_ci\' DEFAULT NULL'); | 32 | if ($this->connection->getDatabasePlatform()->getName() == 'sqlite') { |
33 | $this->addSql('ALTER TABLE '.$this->getTable('oauth2_clients').' ADD name longtext DEFAULT NULL'); | ||
34 | } else { | ||
35 | $this->addSql('ALTER TABLE '.$this->getTable('oauth2_clients').' ADD name longtext COLLATE \'utf8_unicode_ci\' DEFAULT NULL'); | ||
36 | } | ||
33 | } | 37 | } |
34 | 38 | ||
35 | /** | 39 | /** |