master
cody 6 months ago
parent 5e1d57324d
commit 02d9499b88

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('courses', function (Blueprint $table) {
$table->decimal('price', 10, 2)->nullable()->default(0)->comment('价格');
$table->boolean('fee_type')->default(1)->nullable()->comment('缴费类型1上传缴费凭证2在线支付');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('courses', function (Blueprint $table) {
//
});
}
};
Loading…
Cancel
Save