2019_12_11_151416_create_sys_versions_table.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateSysVersionsTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('sys_versions', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->tinyInteger('type')->default(0)->comment('类型:1苹果;2安卓;')->index();
  17. $table->string('version_number', 20)->nullable()->comment('版本号');
  18. $table->string('description')->nullable()->comment('版本更新说明');
  19. $table->string('web_url')->nullable()->comment('版本下载网址');
  20. $table->string('aos_url')->nullable()->comment('安卓下载地址');
  21. $table->string('ios_url')->nullable()->comment('苹果下载地址');
  22. $table->tinyInteger('is_must')->default(0)->comment('是否强制更新:0否;1是;');
  23. $table->timestamps();
  24. $table->softDeletes();
  25. });
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. Schema::dropIfExists('sys_versions');
  35. }
  36. }