2018_06_27_095257_create_album_parts_table.php 894 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateAlbumPartsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('album_parts', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('name',255)->comment('配件名称');
  17. $table->integer('count')->comment('配件数量');
  18. $table->integer('order_id')->comment('订单号');
  19. $table->integer('store_id')->comment('店铺号');
  20. $table->softDeletes();
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::dropIfExists('album_parts');
  32. }
  33. }