X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FDoctrineMigrations%2FVersion20161104073720.php;h=e2b18a46018ea5be5973c7e8ca4a2715b5f39914;hb=bfe7a692261760517199a3797191fd214fc2ee6c;hp=f59ad7ba2cb04cf4dbfe77b6716d790e54af9d0c;hpb=71e1cbc8eb5928d393b0772055d6b711e90a09b3;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/DoctrineMigrations/Version20161104073720.php b/app/DoctrineMigrations/Version20161104073720.php index f59ad7ba..e2b18a46 100644 --- a/app/DoctrineMigrations/Version20161104073720.php +++ b/app/DoctrineMigrations/Version20161104073720.php @@ -2,28 +2,16 @@ 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; /** * Added created_at index on entry table. */ -class Version20161104073720 extends AbstractMigration implements ContainerAwareInterface +class Version20161104073720 extends WallabagMigration { - /** - * @var ContainerInterface - */ - private $container; - private $indexName = 'IDX_entry_created_at'; - public function setContainer(ContainerInterface $container = null) - { - $this->container = $container; - } - /** * @param Schema $schema */ @@ -45,9 +33,4 @@ class Version20161104073720 extends AbstractMigration implements ContainerAwareI $entryTable->dropIndex($this->indexName); } - - private function getTable($tableName) - { - return $this->container->getParameter('database_table_prefix') . $tableName; - } }