increments('id'); $table->tinyInteger('type')->default(0)->comment('类型:1苹果;2安卓;')->index(); $table->string('version_number', 20)->nullable()->comment('版本号'); $table->string('description')->nullable()->comment('版本更新说明'); $table->string('web_url')->nullable()->comment('版本下载网址'); $table->string('aos_url')->nullable()->comment('安卓下载地址'); $table->string('ios_url')->nullable()->comment('苹果下载地址'); $table->tinyInteger('is_must')->default(0)->comment('是否强制更新:0否;1是;'); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('sys_versions'); } }