Issues (46)

m180501_161144_create_s3_file_options.php (2 issues)

Labels
Severity
1
<?php
2
3
use yii\db\Migration;
4
5
/**
6
 * Class m180501_161144_create_s3_file_options
7
 */
8
class m180501_161144_create_s3_file_options extends Migration
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function safeUp()
14
    {
15
        $this->createTable('s3_file_options', [
16
            'mediafileId' => $this->integer()->notNull(),
0 ignored issues
show
The method integer() does not exist on m180501_161144_create_s3_file_options. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
            'mediafileId' => $this->/** @scrutinizer ignore-call */ integer()->notNull(),
Loading history...
17
            'bucket' => $this->string(64)->notNull(),
0 ignored issues
show
The method string() does not exist on m180501_161144_create_s3_file_options. Since you implemented __call, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
            'bucket' => $this->/** @scrutinizer ignore-call */ string(64)->notNull(),
Loading history...
18
            'prefix' => $this->string(128)->notNull(),
19
            'PRIMARY KEY (`mediafileId`, `bucket`, `prefix`)',
20
        ]);
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function safeDown()
27
    {
28
        $this->dropTable('s3_file_options');
29
    }
30
}
31