diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-10-11 10:42:24 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-10-13 09:35:44 +0200 |
commit | 705d3c38dc6eb823b8a6371ea8a85027b2467299 (patch) | |
tree | e0f9ee34f21bbbac07afad54bf3cb648bf969893 /app | |
parent | 88bac4a33ef4270049b009b215504bf9bcb0030a (diff) | |
download | wallabag-705d3c38dc6eb823b8a6371ea8a85027b2467299.tar.gz wallabag-705d3c38dc6eb823b8a6371ea8a85027b2467299.tar.zst wallabag-705d3c38dc6eb823b8a6371ea8a85027b2467299.zip |
CS
Diffstat (limited to 'app')
-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': |