CreateTemplatesTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 17
dl 0
loc 35
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 17 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateTemplatesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('templates', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->string('name');
19
            $table->string('slug');
20
            $table->string('hintpath');
21
            $table->string('path');
22
            $table->string('type');
23
            $table->string('version');
24
            $table->string('author');
25
            $table->longText('fonts');
26
            $table->longText('css');
27
            $table->longText('js');
28
            $table->longText('json');
29
            $table->integer('active');
30
            $table->timestamps();
31
        });
32
    }
33
34
    /**
35
     * Reverse the migrations.
36
     *
37
     * @return void
38
     */
39
    public function down()
40
    {
41
        Schema::dropIfExists('templates');
42
    }
43
}
44