2020_12_14_103401_create_customerlogstatuses_table.php 614 B

1234567891011121314151617181920212223242526
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreateCustomerLogStatusesTable extends Migration
  6. {
  7. public function up()
  8. {
  9. Schema::create('customer_log_statuses', function(Blueprint $table) {
  10. $table->increments('id');
  11. $table->string('name')->index();
  12. $table->text('description');
  13. $table->timestamps();
  14. });
  15. \App\CustomerLogStatus::query()->create([
  16. "name"=>"日志"
  17. ]);
  18. }
  19. public function down()
  20. {
  21. Schema::drop('customer_log_statuses');
  22. }
  23. }