2019_05_24_155645_create_service_fee.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateServiceFee extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. if (!Schema::hasTable('yz_service_fee')) {
  15. Schema::create('yz_service_fee', function (Blueprint $table) {
  16. $table->integer('id', true);
  17. $table->integer('uniacid');
  18. $table->string('goods_id', 45);
  19. $table->integer('is_open')->default(0)->nullable();
  20. $table->decimal('fee',14)->default(0.00)->nullable();
  21. $table->integer('created_at');
  22. $table->integer('updated_at');
  23. $table->integer('deleted_at')->nullable();
  24. });
  25. }
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. Schema::dropIfExists('yz_service_fee');
  35. }
  36. }