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

NullableInvitationFrom::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 3
rs 10
cc 1
eloc 1
nc 1
nop 0
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