2020_09_20_142656_change_order_issue.php 733 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use App\RejectedBill;
  3. use Illuminate\Database\Migrations\Migration;
  4. use Illuminate\Database\Schema\Blueprint;
  5. use Illuminate\Support\Facades\Schema;
  6. class ChangeOrderIssue extends Migration
  7. {
  8. /**
  9. * Run the migrations.
  10. *
  11. * @return void
  12. */
  13. public function up()
  14. {
  15. Schema::table('order_issues',function (Blueprint $table) {
  16. $table->string('logistic_number_return')->nullable()->index()->after('order_id');
  17. });
  18. }
  19. /**
  20. * Reverse the migrations.
  21. *
  22. * @return void
  23. */
  24. public function down()
  25. {
  26. Schema::table('order_issues',function (Blueprint $table) {
  27. $table->dropColumn('logistic_number_return');
  28. });
  29. }
  30. }