Completed
Push — master ( 36a24a...11113e )
by Konstantinos
03:49
created

NullableInvitationFrom   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
A down() 0 3 1
1
<?php
2
3
use Phinx\Migration\AbstractMigration;
4
5
class NullableInvitationFrom extends AbstractMigration
6
{
7
    /**
8
     * Migrate Up.
9
     */
10
    public function up()
11
    {
12
        $this->execute("ALTER TABLE invitations MODIFY sent_by INT(10) UNSIGNED DEFAULT NULL COMMENT 'The player who sent the invitation'");
13
    }
14
15
    /**
16
     * Migrate Down.
17
     */
18
    public function down()
19
    {
20
    }
21
}
22