1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateSysVersionsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('sys_versions', function (Blueprint $table) {
- $table->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');
- }
- }
|