]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/DoctrineMigrations/Version20161106113822.php
Fix migration
[github/wallabag/wallabag.git] / app / DoctrineMigrations / Version20161106113822.php
index 41e64a4a17b56a04a9e6490b06eef7570236bcae..edca54f5d732348dfb277362fffc22da52adadcf 100644 (file)
@@ -4,8 +4,10 @@ namespace Application\Migrations;
 
 use Doctrine\DBAL\Migrations\AbstractMigration;
 use Doctrine\DBAL\Schema\Schema;
+use Symfony\Component\DependencyInjection\ContainerAwareInterface;
+use Symfony\Component\DependencyInjection\ContainerInterface;
 
-class Version20161106113822 extends AbstractMigration
+class Version20161106113822 extends AbstractMigration implements ContainerAwareInterface
 {
     /**
      * @var ContainerInterface
@@ -27,7 +29,7 @@ class Version20161106113822 extends AbstractMigration
      */
     public function up(Schema $schema)
     {
-        $this->addSql('ALTER TABLE "'.$this->getTable('config').'" ADD action_mark_as_read INT DEFAULT 0');
+        $this->addSql('ALTER TABLE '.$this->getTable('config').' ADD action_mark_as_read INT DEFAULT 0');
     }
 
     /**
@@ -37,6 +39,6 @@ class Version20161106113822 extends AbstractMigration
     {
         $this->abortIf($this->connection->getDatabasePlatform()->getName() != 'sqlite', 'This down migration can\'t be executed on SQLite databases, because SQLite don\'t support DROP COLUMN.');
 
-        $this->addSql('ALTER TABLE "'.$this->getTable('config').'" DROP action_mark_as_read');
+        $this->addSql('ALTER TABLE '.$this->getTable('config').' DROP action_mark_as_read');
     }
 }