44 lines
1.0 KiB
PHP
44 lines
1.0 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateMarhunTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('marhun', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->String('no_rujukan');
|
|
$table->String('marhun');
|
|
$table->String('note');
|
|
$table->boolean('rosak');
|
|
$table->boolean('putus');
|
|
$table->boolean('patah');
|
|
$table->boolean('permata');
|
|
$table->boolean('sebelah');
|
|
$table->String('karat');
|
|
$table->String('berat');
|
|
$table->float('harga');
|
|
$table->float('nilai_marhun');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('marhun');
|
|
}
|
|
}
|