update when storing gadai data for one percent
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AddOnepercentToKadarupahTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::connection('mysql7')->table('kadarupah', function (Blueprint $table) {
|
||||
$table->decimal('kadarujrah', 5, 2);
|
||||
$table->decimal('kadaronepercent', 5, 2);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::connection('mysql7')->table('kadarupah', function (Blueprint $table) {
|
||||
$table->dropColumn(['kadarujrah', 'kadaronepercent']);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user