2021_10_18_150042_create_freight_cities_table.php 725 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateFreightCitiesTable.
  6. */
  7. class CreateFreightCitiesTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('freight_cities', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->integer('freight_id')->comment('模板ID');
  19. $table->integer('item_id')->comment('明细ID');
  20. $table->text('city_ids')->comment('城市ID');
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::drop('freight_cities');
  32. }
  33. }