1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-01 17:38:38 +00:00

Fix migration

This commit is contained in:
Jeremy Benoist 2016-11-17 08:05:15 +01:00
parent e6b133c60c
commit 9e2440fe15
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 14 additions and 8 deletions

View 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');
}
}