| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateServiceFee extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- if (!Schema::hasTable('yz_service_fee')) {
- Schema::create('yz_service_fee', function (Blueprint $table) {
- $table->integer('id', true);
- $table->integer('uniacid');
- $table->string('goods_id', 45);
- $table->integer('is_open')->default(0)->nullable();
- $table->decimal('fee',14)->default(0.00)->nullable();
- $table->integer('created_at');
- $table->integer('updated_at');
- $table->integer('deleted_at')->nullable();
- });
- }
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('yz_service_fee');
- }
- }
|