2021_11_13_170123_create_templates_table.php 773 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. /**
  5. * Class CreateTemplatesTable.
  6. */
  7. class CreateTemplatesTable extends Migration
  8. {
  9. /**
  10. * Run the migrations.
  11. *
  12. * @return void
  13. */
  14. public function up()
  15. {
  16. Schema::create('templates', function(Blueprint $table) {
  17. $table->increments('id');
  18. $table->string('template_id')->default('')->comment('微信模板消息ID');
  19. $table->string('template_num')->default('')->comment('微信模板消息序号');
  20. $table->string('msg')->default('')->comment('说明');
  21. $table->timestamps();
  22. });
  23. }
  24. /**
  25. * Reverse the migrations.
  26. *
  27. * @return void
  28. */
  29. public function down()
  30. {
  31. Schema::drop('templates');
  32. }
  33. }