| @@ 6-36 (lines=31) @@ | ||
| 3 | use Illuminate\Database\Migrations\Migration; |
|
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | ||
| 6 | class CreateAkademiksTable extends Migration |
|
| 7 | { |
|
| 8 | /** |
|
| 9 | * Run the migrations. |
|
| 10 | * |
|
| 11 | * @return void |
|
| 12 | */ |
|
| 13 | public function up() |
|
| 14 | { |
|
| 15 | Schema::create('akademiks', function(Blueprint $table) { |
|
| 16 | $table->increments('id'); |
|
| 17 | $table->integer('user_id'); |
|
| 18 | $table->bigInteger('nomor_un'); |
|
| 19 | $table->integer('bahasa_indonesia'); |
|
| 20 | $table->integer('bahasa_inggris'); |
|
| 21 | $table->integer('matematika'); |
|
| 22 | $table->timestamps(); |
|
| 23 | $table->softDeletes(); |
|
| 24 | }); |
|
| 25 | } |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Reverse the migrations. |
|
| 29 | * |
|
| 30 | * @return void |
|
| 31 | */ |
|
| 32 | public function down() |
|
| 33 | { |
|
| 34 | Schema::drop('akademiks'); |
|
| 35 | } |
|
| 36 | } |
|
| 37 | ||
| @@ 6-37 (lines=32) @@ | ||
| 3 | use Illuminate\Database\Migrations\Migration; |
|
| 4 | use Illuminate\Database\Schema\Blueprint; |
|
| 5 | ||
| 6 | class CreateNilaisTable extends Migration |
|
| 7 | { |
|
| 8 | /** |
|
| 9 | * Run the migrations. |
|
| 10 | * |
|
| 11 | * @return void |
|
| 12 | */ |
|
| 13 | public function up() |
|
| 14 | { |
|
| 15 | Schema::create('nilais', function(Blueprint $table) { |
|
| 16 | $table->increments('id'); |
|
| 17 | $table->integer('user_id'); |
|
| 18 | $table->bigInteger('siswa_id'); |
|
| 19 | $table->integer('akademik_id'); |
|
| 20 | $table->integer('prestasi_id'); |
|
| 21 | $table->string('zona_id'); |
|
| 22 | $table->integer('sktm_id'); |
|
| 23 | $table->timestamps(); |
|
| 24 | $table->softDeletes(); |
|
| 25 | }); |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * Reverse the migrations. |
|
| 30 | * |
|
| 31 | * @return void |
|
| 32 | */ |
|
| 33 | public function down() |
|
| 34 | { |
|
| 35 | Schema::drop('nilais'); |
|
| 36 | } |
|
| 37 | } |
|
| 38 | ||