aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20161118134328.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/DoctrineMigrations/Version20161118134328.php')
-rw-r--r--app/DoctrineMigrations/Version20161118134328.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/DoctrineMigrations/Version20161118134328.php b/app/DoctrineMigrations/Version20161118134328.php
index f168cb53..7b2eeb7b 100644
--- a/app/DoctrineMigrations/Version20161118134328.php
+++ b/app/DoctrineMigrations/Version20161118134328.php
@@ -47,7 +47,10 @@ class Version20161118134328 extends AbstractMigration implements ContainerAwareI
47 */ 47 */
48 public function down(Schema $schema) 48 public function down(Schema $schema)
49 { 49 {
50 $userTable = $schema->getTable($this->getTable('entry')); 50 $entryTable = $schema->getTable($this->getTable('entry'));
51 $userTable->dropColumn('http_status'); 51
52 $this->skipIf(!$entryTable->hasColumn('http_status'), 'It seems that you already played this migration.');
53
54 $entryTable->dropColumn('http_status');
52 } 55 }
53} 56}