diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-26 13:34:36 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-28 14:28:35 +0100 |
commit | a4d55a9161144f7e0daafff8da13dabc9e090ae2 (patch) | |
tree | f051280d6258e825913e155137ab00ae2dea7462 /app/DoctrineMigrations/Version20161122144743.php | |
parent | 18d7bc3a353d8737c64a0f9e1c9fdcb7a756c3e5 (diff) | |
download | wallabag-a4d55a9161144f7e0daafff8da13dabc9e090ae2.tar.gz wallabag-a4d55a9161144f7e0daafff8da13dabc9e090ae2.tar.zst wallabag-a4d55a9161144f7e0daafff8da13dabc9e090ae2.zip |
Replaced abortIf with skipIf
Diffstat (limited to 'app/DoctrineMigrations/Version20161122144743.php')
-rw-r--r-- | app/DoctrineMigrations/Version20161122144743.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/DoctrineMigrations/Version20161122144743.php b/app/DoctrineMigrations/Version20161122144743.php index ec80c48e..536b8339 100644 --- a/app/DoctrineMigrations/Version20161122144743.php +++ b/app/DoctrineMigrations/Version20161122144743.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 | * Add the restricted_access internal setting for articles with paywall | 11 | * Add the restricted_access internal setting for articles with paywall. |
12 | */ | 12 | */ |
13 | class Version20161122144743 extends AbstractMigration implements ContainerAwareInterface | 13 | class Version20161122144743 extends AbstractMigration implements ContainerAwareInterface |
14 | { | 14 | { |
@@ -24,7 +24,7 @@ class Version20161122144743 extends AbstractMigration implements ContainerAwareI | |||
24 | 24 | ||
25 | private function getTable($tableName) | 25 | private function getTable($tableName) |
26 | { | 26 | { |
27 | return $this->container->getParameter('database_table_prefix') . $tableName; | 27 | return $this->container->getParameter('database_table_prefix').$tableName; |
28 | } | 28 | } |
29 | 29 | ||
30 | /** | 30 | /** |
@@ -32,7 +32,7 @@ class Version20161122144743 extends AbstractMigration implements ContainerAwareI | |||
32 | */ | 32 | */ |
33 | public function up(Schema $schema) | 33 | public function up(Schema $schema) |
34 | { | 34 | { |
35 | $this->addSql("INSERT INTO ".$this->getTable('craue_config_setting')." (name, value, section) VALUES ('restricted_access', 0, 'entry')"); | 35 | $this->addSql('INSERT INTO '.$this->getTable('craue_config_setting')." (name, value, section) VALUES ('restricted_access', 0, 'entry')"); |
36 | } | 36 | } |
37 | 37 | ||
38 | /** | 38 | /** |
@@ -40,6 +40,6 @@ class Version20161122144743 extends AbstractMigration implements ContainerAwareI | |||
40 | */ | 40 | */ |
41 | public function down(Schema $schema) | 41 | public function down(Schema $schema) |
42 | { | 42 | { |
43 | $this->addSql("DELETE FROM ".$this->getTable('craue_config_setting')." WHERE name = 'restricted_access';"); | 43 | $this->addSql('DELETE FROM '.$this->getTable('craue_config_setting')." WHERE name = 'restricted_access';"); |
44 | } | 44 | } |
45 | } | 45 | } |