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

CreateRuntimeConfigTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 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()
18
    {
19
        Schema::create('config', function (Blueprint $table) {
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