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

CreateDataAkademiksTable::up()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 21

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 21
nc 1
nop 0
dl 0
loc 24
rs 8.9713
c 0
b 0
f 0
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