m180716_121422_environments::safeUp()   A
last analyzed

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 0
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
13
class m180716_121422_environments extends Migration
14
{
15
    /**
16
     * @inheritdoc
17
     */
18
    public function safeUp()
19
    {
20
        return true;
21
    }
22
23
    /**
24
     * @inheritdoc
25
     */
26
    public function safeDown()
27
    {
28
        $this->dropTableIfExists('{{%patron_provider_environments}}');
29
        $this->dropTableIfExists('{{%patron_token_environments}}');
30
31
        return true;
32
    }
33
}
34