update migration
This commit is contained in:
@@ -91,7 +91,7 @@ class CreateCawangansTable extends Migration
|
||||
$table->string('nokp')->nullable();
|
||||
$table->date('t_gadai');
|
||||
$table->time('masa')->nullable();
|
||||
$table->int('sirig')->nullable();
|
||||
$table->integer('sirig')->nullable();
|
||||
$table->decimal('nilaimarhun', $precision = 9, $scale = 2)->nullable();
|
||||
$table->decimal('n_marhuns', $precision = 9, $scale = 2)->nullable();
|
||||
$table->decimal('berat', $precision = 7, $scale = 2)->nullable();
|
||||
@@ -152,7 +152,6 @@ class CreateCawangansTable extends Migration
|
||||
$table->integer('jenisansur')->nullable();
|
||||
$table->string('nokotak')->nullable();
|
||||
$table->integer('tiada')->nullable();
|
||||
$table->integer('tiada')->nullable();
|
||||
$table->integer('tagtbaki')->nullable();
|
||||
$table->string('penilai')->nullable();
|
||||
$table->string('namapenilai')->nullable();
|
||||
@@ -182,7 +181,6 @@ class CreateCawangansTable extends Migration
|
||||
$table->string('tellernew')->nullable();
|
||||
$table->string('idjompay')->nullable();
|
||||
$table->integer('tangguh')->nullable();
|
||||
$table->integer('tangguh')->nullable();
|
||||
$table->date('tebus')->nullable();
|
||||
$table->decimal('upahSim', $precision = 7, $scale = 2)->nullable();
|
||||
$table->decimal('jbgakru', $precision = 5, $scale = 2)->nullable();
|
||||
@@ -219,17 +217,17 @@ class CreateCawangansTable extends Migration
|
||||
|
||||
Schema::create('gadaimarhun', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->string('norujukan')->unsigned();
|
||||
$table->decimal('bil', $precision = 3, $scale = 0);
|
||||
$table->string('norujukan');
|
||||
$table->decimal('bil', $precision = 3, $scale = 2);
|
||||
$table->string('marhun');
|
||||
$table->string('nota');
|
||||
$table->string('karat');
|
||||
$table->decimal('berat', $precision = 7, $scale = 2);
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('norujukan')
|
||||
->references('norujukan')->on('gadai')
|
||||
->onDelete('cascade');
|
||||
// $table->foreign('norujukan')
|
||||
// ->references('norujukan')->on('gadai')
|
||||
// ->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user