InitializeDb   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 19
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 2 1
A up() 0 3 1
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