diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2017-01-26 13:15:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-26 13:15:06 +0100 |
commit | 463cb376e357d50c5913452fba68a70bf43492c9 (patch) | |
tree | ec6ae907d00b7637c0a3238943e6ffcb78802924 /app/DoctrineMigrations/Version20161106113822.php | |
parent | 012b2d453e0cbe1ab478c2868559f919ea805db2 (diff) | |
parent | 5d916d03afaec6fbe32d2a95624628096325744e (diff) | |
download | wallabag-463cb376e357d50c5913452fba68a70bf43492c9.tar.gz wallabag-463cb376e357d50c5913452fba68a70bf43492c9.tar.zst wallabag-463cb376e357d50c5913452fba68a70bf43492c9.zip |
Merge pull request #2646 from wallabag/explain-migrations-in-doc
Added explanations about migrations
Diffstat (limited to 'app/DoctrineMigrations/Version20161106113822.php')
-rw-r--r-- | app/DoctrineMigrations/Version20161106113822.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/DoctrineMigrations/Version20161106113822.php b/app/DoctrineMigrations/Version20161106113822.php index 55bd87a2..de3702a4 100644 --- a/app/DoctrineMigrations/Version20161106113822.php +++ b/app/DoctrineMigrations/Version20161106113822.php | |||
@@ -7,6 +7,9 @@ use Doctrine\DBAL\Schema\Schema; | |||
7 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; | 7 | use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
8 | use Symfony\Component\DependencyInjection\ContainerInterface; | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
9 | 9 | ||
10 | /** | ||
11 | * Added action_mark_as_read field on config table | ||
12 | */ | ||
10 | class Version20161106113822 extends AbstractMigration implements ContainerAwareInterface | 13 | class Version20161106113822 extends AbstractMigration implements ContainerAwareInterface |
11 | { | 14 | { |
12 | /** | 15 | /** |
@@ -45,6 +48,9 @@ class Version20161106113822 extends AbstractMigration implements ContainerAwareI | |||
45 | public function down(Schema $schema) | 48 | public function down(Schema $schema) |
46 | { | 49 | { |
47 | $configTable = $schema->getTable($this->getTable('config')); | 50 | $configTable = $schema->getTable($this->getTable('config')); |
48 | $userTable->dropColumn('action_mark_as_read'); | 51 | |
52 | $this->skipIf(!$configTable->hasColumn('action_mark_as_read'), 'It seems that you already played this migration.'); | ||
53 | |||
54 | $configTable->dropColumn('action_mark_as_read'); | ||
49 | } | 55 | } |
50 | } | 56 | } |