Initial commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user