OptionalChangesAdmin::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.7666
c 0
b 0
f 0
cc 1
nc 1
nop 0
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