Completed
Push — feature/test-php-7-2-in-travis ( 027341...a56bae )
by
unknown
05:31
created

Version20160620090507   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
A down() 0 5 1
1
<?php
2
3
namespace Surfnet\StepupMiddleware\Migrations;
4
5
use Doctrine\DBAL\Migrations\AbstractMigration;
6
use Doctrine\DBAL\Schema\Schema;
7
8
class Version20160620090507 extends AbstractMigration
9
{
10
    /**
11
     * @param Schema $schema
12
     */
13
    public function up(Schema $schema)
14
    {
15
        $this->addSql('ALTER TABLE unverified_second_factor DROP verification_nonce_valid_until');
16
    }
17
18
    /**
19
     * @param Schema $schema
20
     */
21
    public function down(Schema $schema)
22
    {
23
        $this->addSql('ALTER TABLE unverified_second_factor ADD verification_nonce_valid_until DATETIME');
24
25
    }
26
}
27