mirror of
https://github.com/cjango/dcat-vue.git
synced 2025-12-06 22:40:03 +08:00
35 lines
813 B
PHP
35 lines
813 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateFielsystemConfigTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('filesystem_configs', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('key', 50)->unique()->comment('配置key');
|
|
$table->string('name')->default('')->comment('配置名称');
|
|
$table->text('value')->comment('配置值');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('filesystem_configs');
|
|
}
|
|
}
|