CreateSekolahsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 23 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateSekolahsTable extends Migration
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
	public function up()
14
	{
15
		Schema::create('sekolahs', function(Blueprint $table) {
16
			$table->string('id');
17
			$table->string('nama');
18
			$table->string('npsn');
19
			$table->integer('jenis_sekolah_id')->nullable();
20
			$table->string('alamat');
21
			$table->string('logo')->nullable();
22
			$table->string('foto_gedung')->nullable();
23
			$table->string('province_id')->nullable();
24
			$table->string('city_id')->nullable();
25
			$table->string('district_id')->nullable();
26
			$table->string('village_id')->nullable();
27
			$table->string('no_telp');
28
			$table->string('email');
29
			$table->string('kode_zona')->nullable();
30
			$table->string('uuid')->nullable();
31
			$table->integer('user_id')->nullable();
32
			$table->timestamps();
33
			$table->softDeletes();
34
		});
35
	}
36
37
    /**
38
     * Reverse the migrations.
39
     *
40
     * @return void
41
     */
42
	public function down()
43
	{
44
		Schema::drop('sekolahs');
45
	}
46
}
47