Completed
Push — master ( 216c80...250808 )
by
unknown
8s
created

CreateDataAkademiksTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
B up() 0 24 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateDataAkademiksTable 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('data_akademiks', function(Blueprint $table) {
16
            $table->increments('id');
17
            $table->integer('user_id');
18
            $table->string('nomor_un');
19
            $table->string('nomor_kk')->nullable();
20
            $table->string('nisn')->nullable();
21
            $table->string('nama_siswa');
22
            $table->decimal('bahasa_indonesia')->nullable();
23
            $table->decimal('bahasa_inggris')->nullable();
24
            $table->decimal('matematika')->nullable();
25
            $table->decimal('ipa')->nullable();
26
            $table->string('tempat_lahir')->nullable();
27
            $table->date('tanggal_lahir')->nullable();
28
            $table->string('jenis_kelamin')->nullable();
29
            $table->string('nama_ortu')->nullable();
30
            $table->string('alamat')->nullable();
31
            $table->string('npsn_asal_sekolah')->nullable();
32
            $table->string('asal_sekolah')->nullable();
33
            $table->timestamps();
34
            $table->softDeletes();
35
        });
36
	}
37
38
    /**
39
     * Reverse the migrations.
40
     *
41
     * @return void
42
     */
43
	public function down()
44
	{
45
		Schema::drop('data_akademiks');
46
	}
47
}
48