Browse Source

迁移

master
lemon 4 years ago
parent
commit
8caf29f03a
  1. 32
      database/migrations/2021_09_16_182502_update_supplier_table.php

32
database/migrations/2021_09_16_182502_update_supplier_table.php

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateSupplierTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('suppliers', function (Blueprint $table) {
$table->decimal('deposit_normal')->default(0)->comment('交易金正常')->after('balance');
$table->decimal('deposit_frozen')->default(0)->comment('交易金冻结')->after('balance');
$table->decimal('deposit_used')->default(0)->comment('交易金已消费')->after('balance');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
Loading…
Cancel
Save