This class seems to be duplicated in your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate
the same code in three or more different places, we strongly encourage you to
look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.
Loading history...
14
{
15
/**
16
* @var ContainerInterface
17
*/
18
private $container;
19
20
public function setContainer(ContainerInterface $container = null)
21
{
22
$this->container = $container;
23
}
24
25
/**
26
* @param Schema $schema
27
*/
28
public function up(Schema $schema)
29
{
30
// this up() migration is auto-generated, please modify it to your needs
31
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
32
33
$gatewaySchema = $this->getGatewaySchema();
34
35
$this->addSql(sprintf('ALTER TABLE %s.second_factor ADD display_locale VARCHAR(255) NOT NULL', $gatewaySchema));
36
}
37
38
/**
39
* @param Schema $schema
40
*/
41
public function down(Schema $schema)
42
{
43
// this down() migration is auto-generated, please modify it to your needs
44
$this->abortIf($this->connection->getDatabasePlatform()->getName() != 'mysql', 'Migration can only be executed safely on \'mysql\'.');
45
46
$gatewaySchema = $this->getGatewaySchema();
47
48
$this->addSql(sprintf('ALTER TABLE %s.second_factor DROP display_locale', $gatewaySchema));
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.