for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateWalletsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create('wallets', function (Blueprint $table) {
$table->bigIncrements('id');
$table->morphs('holder');
$table->string('currency', 20)->default('CNY')->comment('货币');
$table->bigInteger('balance')->default(0)->comment('余额');
$table->timestamps();
});
}
* Reverse the migrations.
public function down()
Schema::dropIfExists('wallets');