InitializeDb::down()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
rs 10
1
<?php
2
3
use Illuminate\Support\Facades\DB;
4
use Illuminate\Database\Migrations\Migration;
5
6
class InitializeDb extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        DB::unprepared(file_get_contents(config('quick_migrations.dump_file')));
16
    }
17
18
    /**
19
     * Reverse the migrations.
20
     *
21
     * @return void
22
     */
23
    public function down()
24
    {
25
    }
26
}
27