2026_01_30_150325_create_inspection.php 789 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. use Illuminate\Support\Facades\DB;
  6. return new class extends Migration
  7. {
  8. /**
  9. * Run the migrations.
  10. *
  11. * @return void
  12. */
  13. public function up()
  14. {
  15. Schema::create('inspection', function (Blueprint $table) {
  16. $table->engine = 'InnoDB';
  17. $table->collation = 'utf8mb4_general_ci';
  18. $table->id();
  19. $table->timestamps();
  20. });
  21. DB::statement("ALTER TABLE bot_inspection COMMENT = '人工稽查'");
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::dropIfExists('inspection');
  31. }
  32. };