aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-09-29 11:35:47 +0200
committerGitHub <noreply@github.com>2016-09-29 11:35:47 +0200
commitfb479be3a0af95bba45c13b11e1f85bb9c753d25 (patch)
tree4570e7d48f58a78b0da54090fe2a4d4996ec5683 /app
parent37b63c170d700db5d248a33fcf9aca9d41473ec0 (diff)
parent2d8af6fc7fe32dd8788cb89f8c3aec9269cbe33c (diff)
downloadwallabag-fb479be3a0af95bba45c13b11e1f85bb9c753d25.tar.gz
wallabag-fb479be3a0af95bba45c13b11e1f85bb9c753d25.tar.zst
wallabag-fb479be3a0af95bba45c13b11e1f85bb9c753d25.zip
Merge pull request #2315 from wallabag/fixes-about-upgrade
Fixes about upgrade
Diffstat (limited to 'app')
-rw-r--r--app/DoctrineMigrations/Version20160812120952.php6
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 /**