2020_10_29_110927_add_stores_volumn.php 852 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class AddStoresVolumn extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::table('stores', function (Blueprint $table) {
  15. $table->integer('store_type_id')->nullable()->index()->comment('外键asn入库类型');
  16. $table->integer('store_status_id')->nullable()->index()->comment('外键asn入库状态');
  17. });
  18. }
  19. /**
  20. * Reverse the migrations.
  21. *
  22. * @return void
  23. */
  24. public function down()
  25. {
  26. Schema::table('stores', function (Blueprint $table) {
  27. $table->dropColumn('store_type_id');
  28. $table->dropColumn('store_status_id');
  29. });
  30. }
  31. }