Completed
Push — master ( b27247...4b092a )
by Ben
02:30
created

CreateRuntimeConfigTable::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
use Illuminate\Database\Migration\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
/**
8
 * Creates the runtime config database schema
9
 */
10
class CreateRuntimeConfigTable extends Migration
11
{
12
    /**
13
     * Runs the Migration
14
     *
15
     * @return void
16
     */
17
    public function up()
0 ignored issues
show
Coding Style introduced by
This method's name is shorter than the configured minimum length of 3 characters.

Even though PHP does not care about the name of your methods, it is generally a good practice to choose method names which can be easily understood by other human readers.

Loading history...
18
    {
19
        Schema::create('config', function (Blueprint $table) {
0 ignored issues
show
Bug introduced by
The method create() does not exist on Illuminate\Support\Facades\Schema. Did you maybe mean createFreshMockInstance()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
20
            $table->pk('id');
21
            $table->string('key');
22
            $table->longText('value');
23
24
            $table->unique('key');
25
        });
26
    }
27
28
    /**
29
     * Reverts the migrations
30
     *
31
     * @return void
32
     */
33
    public function down()
34
    {
35
        Schema::drop('config');
36
    }
37
}
38