aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20171008195606.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-10-11 10:42:24 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-10-13 09:35:44 +0200
commit705d3c38dc6eb823b8a6371ea8a85027b2467299 (patch)
treee0f9ee34f21bbbac07afad54bf3cb648bf969893 /app/DoctrineMigrations/Version20171008195606.php
parent88bac4a33ef4270049b009b215504bf9bcb0030a (diff)
downloadwallabag-705d3c38dc6eb823b8a6371ea8a85027b2467299.tar.gz
wallabag-705d3c38dc6eb823b8a6371ea8a85027b2467299.tar.zst
wallabag-705d3c38dc6eb823b8a6371ea8a85027b2467299.zip
CS
Diffstat (limited to 'app/DoctrineMigrations/Version20171008195606.php')
-rw-r--r--app/DoctrineMigrations/Version20171008195606.php6
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;
8use Symfony\Component\DependencyInjection\ContainerInterface; 8use 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 */
13class Version20171008195606 extends AbstractMigration implements ContainerAwareInterface 13class 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':