Completed
Push — master ( 9abbc7...a687e5 )
by Fabrizio
03:03
created

AddExpireTimeColumnToNotificationTable::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
5
class AddExpireTimeColumnToNotificationTable extends Migration
6
{
7
    /**
8
     * Run the migrations.
9
     *
10
     * @return void
11
     */
12
    public function up()
13
    {
14
        Schema::table('notifications', function ($table) {
15
            $table->timestamp('expire_time')->nullable();
16
        });
17
    }
18
19
    /**
20
     * Reverse the migrations.
21
     *
22
     * @return void
23
     */
24
    public function down()
25
    {
26
        Schema::table('notifications', function ($table) {
27
            $table->dropColumn('expire_time');
28
        });
29
    }
30
}
31