35 lines
786 B
PHP
35 lines
786 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('version', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->tinyInteger('type')->default(0)->comment('类型 0:h5 1:app');
|
|
$table->string('version')->comment('版本号');
|
|
$table->string('remark')->nullable()->comment('备注');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('version');
|
|
}
|
|
};
|