X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FDoctrineMigrations%2FVersion20161024212538.php;h=a7e3c3c8657078011f81d9f8b82d264d768e74fd;hb=bfe7a692261760517199a3797191fd214fc2ee6c;hp=698819be33de44f67e6f41ec7a5253bb0a9ab1d8;hpb=36054f5dd42413ed5877db8c50fe9f1a3c6167c6;p=github%2Fwallabag%2Fwallabag.git diff --git a/app/DoctrineMigrations/Version20161024212538.php b/app/DoctrineMigrations/Version20161024212538.php index 698819be..a7e3c3c8 100644 --- a/app/DoctrineMigrations/Version20161024212538.php +++ b/app/DoctrineMigrations/Version20161024212538.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 user_id column on oauth2_clients to prevent users to delete API clients from other users. */ -class Version20161024212538 extends AbstractMigration implements ContainerAwareInterface +class Version20161024212538 extends WallabagMigration { - /** - * @var ContainerInterface - */ - private $container; - private $constraintName = 'IDX_user_oauth_client'; - public function setContainer(ContainerInterface $container = null) - { - $this->container = $container; - } - /** * @param Schema $schema */ @@ -59,9 +47,4 @@ class Version20161024212538 extends AbstractMigration implements ContainerAwareI $clientsTable->removeForeignKey($this->constraintName); } } - - private function getTable($tableName) - { - return $this->container->getParameter('database_table_prefix') . $tableName; - } }