OptionalChangesAdmin   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 45
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 15 1
A down() 0 16 1
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class OptionalChangesAdmin extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        // Schema::table('changes', function (Blueprint $table) {
16
        //     $table->integer('admin_id')->unsigned()->nullable()->change();
17
        // });
18
        // Schema::table('changes', function (Blueprint $table) {
19
        //     $table->dropForeign(['admin_id']);
20
        // });
21
        // Schema::table('changes', function (Blueprint $table) {
22
        //     $table->foreign('admin_id')
23
        //         ->references('id')->on('admins')
24
        //         ->onUpdate('cascade')
25
        //         ->onDelete('set null');
26
        // });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down()
35
    {
36
        // Schema::table('changes', function (Blueprint $table) {
37
        //     $table->integer('admin_id')->unsigned()->change();
38
        // });
39
        // Schema::table('changes', function (Blueprint $table) {
40
        //     $table->dropForeign(['admin_id']);
41
        // });
42
        // Schema::table('changes', function (Blueprint $table) {
43
        //     $table->foreign('admin_id')
44
        //         ->references('id')->on('admins')
45
        //         ->onUpdate('cascade')
46
        //         ->onDelete('cascade');
47
        // });
48
49
    }
50
}
51