X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FDoctrineMigrations%2FVersion20161128131503.php;h=2a34d448f7434cd0f12d655e532160afed52d175;hb=a29a15c98da1ffa78f7cc52e7906b904fcffc144;hp=b71aa38bcbe6fc5cab9edf1ac6b4642138332b1b;hpb=4acbeb93717612f361627f7d4b946fcb4477823c;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/DoctrineMigrations/Version20161128131503.php b/app/DoctrineMigrations/Version20161128131503.php index b71aa38b..2a34d448 100644 --- a/app/DoctrineMigrations/Version20161128131503.php +++ b/app/DoctrineMigrations/Version20161128131503.php @@ -2,15 +2,13 @@ namespace Application\Migrations; -use Doctrine\DBAL\Migrations\AbstractMigration; use Doctrine\DBAL\Schema\Schema; -use Symfony\Component\DependencyInjection\ContainerAwareInterface; -use Symfony\Component\DependencyInjection\ContainerInterface; +use Wallabag\CoreBundle\Doctrine\WallabagMigration; /** * Removed locked, credentials_expire_at and expires_at. */ -class Version20161128131503 extends AbstractMigration implements ContainerAwareInterface +class Version20161128131503 extends WallabagMigration { private $fields = [ 'locked' => 'smallint', @@ -18,24 +16,6 @@ class Version20161128131503 extends AbstractMigration implements ContainerAwareI 'expires_at' => 'datetime', ]; - /** - * @var ContainerInterface - */ - private $container; - - public function setContainer(ContainerInterface $container = null) - { - $this->container = $container; - } - - private function getTable($tableName) - { - return $this->container->getParameter('database_table_prefix').$tableName; - } - - /** - * @param Schema $schema - */ public function up(Schema $schema) { $userTable = $schema->getTable($this->getTable('user')); @@ -46,9 +26,6 @@ class Version20161128131503 extends AbstractMigration implements ContainerAwareI } } - /** - * @param Schema $schema - */ public function down(Schema $schema) { $userTable = $schema->getTable($this->getTable('user'));