Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class m180220_082806_create_owners_mediafiles_table extends Migration |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | */ |
||
13 | public function safeUp() |
||
14 | { |
||
15 | $this->createTable('owners_mediafiles', [ |
||
16 | 'mediafileId' => $this->integer()->notNull(), |
||
|
|||
17 | 'ownerId' => $this->integer()->notNull(), |
||
18 | 'owner' => $this->string(64)->notNull(), |
||
19 | 'ownerAttribute' => $this->string(64)->notNull(), |
||
20 | 'PRIMARY KEY (`mediafileId`, `ownerId`, `owner`, `ownerAttribute`)', |
||
21 | ]); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | public function safeDown() |
||
30 | } |
||
31 | } |
||
32 |