2019_07_08_173223_create_post_music_user.php 901 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreatePostMusicUser extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('post_music_user', function (Blueprint $table) {
  15. $table->bigIncrements('id');
  16. $table->string('url')->default('')->comment('音乐地址');
  17. $table->string('name',100)->comment('音乐名称');
  18. $table->string('username',100)->default('')->comment('上传用户');
  19. $table->integer('uid')->comment('上传用户ID');
  20. $table->timestamps();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::dropIfExists('table_post_music_user');
  31. }
  32. }