]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
CS
authorJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 11 Oct 2017 08:42:24 +0000 (10:42 +0200)
committerNicolas LÅ“uillet <nicolas@loeuillet.org>
Fri, 13 Oct 2017 07:35:44 +0000 (09:35 +0200)
app/DoctrineMigrations/Version20171008195606.php

index 7c2021514ae2c77e17d3b3a4d07053cf09b85203..87828afd2cc2fc3f75609fcafb3512dc4c65d6c2 100644 (file)
@@ -8,7 +8,7 @@ use Symfony\Component\DependencyInjection\ContainerAwareInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
 /**
- * Changed reading_time field to prevent null value
+ * Changed reading_time field to prevent null value.
  */
 class Version20171008195606 extends AbstractMigration implements ContainerAwareInterface
 {
@@ -27,7 +27,7 @@ class Version20171008195606 extends AbstractMigration implements ContainerAwareI
      */
     public function up(Schema $schema)
     {
-        $this->skipIf($this->connection->getDatabasePlatform()->getName() === 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
+        $this->skipIf('sqlite' === $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
 
         switch ($this->connection->getDatabasePlatform()->getName()) {
             case 'mysql':
@@ -44,7 +44,7 @@ class Version20171008195606 extends AbstractMigration implements ContainerAwareI
      */
     public function down(Schema $schema)
     {
-        $this->skipIf($this->connection->getDatabasePlatform()->getName() === 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
+        $this->skipIf('sqlite' === $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
 
         switch ($this->connection->getDatabasePlatform()->getName()) {
             case 'mysql':