diff options
Diffstat (limited to 'app/DoctrineMigrations/Version20171008195606.php')
-rw-r--r-- | app/DoctrineMigrations/Version20171008195606.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/DoctrineMigrations/Version20171008195606.php b/app/DoctrineMigrations/Version20171008195606.php index 7c202151..87828afd 100644 --- a/app/DoctrineMigrations/Version20171008195606.php +++ b/app/DoctrineMigrations/Version20171008195606.php | |||
@@ -8,7 +8,7 @@ use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |||
8 | use Symfony\Component\DependencyInjection\ContainerInterface; | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * Changed reading_time field to prevent null value | 11 | * Changed reading_time field to prevent null value. |
12 | */ | 12 | */ |
13 | class Version20171008195606 extends AbstractMigration implements ContainerAwareInterface | 13 | class Version20171008195606 extends AbstractMigration implements ContainerAwareInterface |
14 | { | 14 | { |
@@ -27,7 +27,7 @@ class Version20171008195606 extends AbstractMigration implements ContainerAwareI | |||
27 | */ | 27 | */ |
28 | public function up(Schema $schema) | 28 | public function up(Schema $schema) |
29 | { | 29 | { |
30 | $this->skipIf($this->connection->getDatabasePlatform()->getName() === 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.'); | 30 | $this->skipIf('sqlite' === $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.'); |
31 | 31 | ||
32 | switch ($this->connection->getDatabasePlatform()->getName()) { | 32 | switch ($this->connection->getDatabasePlatform()->getName()) { |
33 | case 'mysql': | 33 | case 'mysql': |
@@ -44,7 +44,7 @@ class Version20171008195606 extends AbstractMigration implements ContainerAwareI | |||
44 | */ | 44 | */ |
45 | public function down(Schema $schema) | 45 | public function down(Schema $schema) |
46 | { | 46 | { |
47 | $this->skipIf($this->connection->getDatabasePlatform()->getName() === 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.'); | 47 | $this->skipIf('sqlite' === $this->connection->getDatabasePlatform()->getName(), 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.'); |
48 | 48 | ||
49 | switch ($this->connection->getDatabasePlatform()->getName()) { | 49 | switch ($this->connection->getDatabasePlatform()->getName()) { |
50 | case 'mysql': | 50 | case 'mysql': |