diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/DoctrineMigrations/Version20160916201049.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/DoctrineMigrations/Version20160916201049.php b/app/DoctrineMigrations/Version20160916201049.php index 09c05f4b..9390755e 100644 --- a/app/DoctrineMigrations/Version20160916201049.php +++ b/app/DoctrineMigrations/Version20160916201049.php | |||
@@ -33,7 +33,7 @@ class Version20160916201049 extends AbstractMigration implements ContainerAwareI | |||
33 | 33 | ||
34 | $this->skipIf($configTable->hasColumn('pocket_consumer_key'), 'It seems that you already played this migration.'); | 34 | $this->skipIf($configTable->hasColumn('pocket_consumer_key'), 'It seems that you already played this migration.'); |
35 | 35 | ||
36 | $userTable->addColumn('pocket_consumer_key', 'string'); | 36 | $configTable->addColumn('pocket_consumer_key', 'string'); |
37 | $this->addSql('DELETE FROM '.$this->getTable('craue_config_setting')." WHERE name = 'pocket_consumer_key';"); | 37 | $this->addSql('DELETE FROM '.$this->getTable('craue_config_setting')." WHERE name = 'pocket_consumer_key';"); |
38 | } | 38 | } |
39 | 39 | ||
@@ -43,7 +43,7 @@ class Version20160916201049 extends AbstractMigration implements ContainerAwareI | |||
43 | public function down(Schema $schema) | 43 | public function down(Schema $schema) |
44 | { | 44 | { |
45 | $configTable = $schema->getTable($this->getTable('config')); | 45 | $configTable = $schema->getTable($this->getTable('config')); |
46 | $clientsTable->dropColumn('pocket_consumer_key'); | 46 | $configTable->dropColumn('pocket_consumer_key'); |
47 | $this->addSql('INSERT INTO '.$this->getTable('craue_config_setting')." (name, value, section) VALUES ('pocket_consumer_key', NULL, 'import')"); | 47 | $this->addSql('INSERT INTO '.$this->getTable('craue_config_setting')." (name, value, section) VALUES ('pocket_consumer_key', NULL, 'import')"); |
48 | } | 48 | } |
49 | } | 49 | } |