Completed
Push — develop ( 55c38a...c1b735 )
by Nate
12:53
created

m190426_101341_project_config::safeDown()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright  Copyright (c) Flipbox Digital Limited
5
 * @license    https://flipboxfactory.com/software/patron/license
6
 * @link       https://www.flipboxfactory.com/software/patron/
7
 */
8
9
namespace flipbox\patron\migrations;
10
11
use craft\db\Migration;
12
use flipbox\patron\records\Provider;
13
14
class m190426_101341_project_config extends Migration
15
{
16
    /**
17
     * @inheritdoc
18
     */
19
    public function safeUp()
20
    {
21
        $this->addColumn(
22
            Provider::tableName(),
23
            'clientId',
24
            $this->char(Provider::CLIENT_ID_LENGTH)->notNull()
25
        );
26
27
        $this->addColumn(
28
            Provider::tableName(),
29
            'clientSecret',
30
            $this->char(Provider::CLIENT_SECRET_LENGTH)
31
        );
32
    }
33
34
    /**
35
     * @inheritdoc
36
     */
37
    public function safeDown()
38
    {
39
        return true;
40
    }
41
}
42