1
0
mirror of https://github.com/cjango/dcat-vue.git synced 2025-12-06 22:40:03 +08:00
Files
dcat-vue/updates/drop_filesystem_configs_table.php
2023-01-05 13:57:52 +08:00

35 lines
808 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateFielsystemConfig extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::dropIfExists('filesystem_configs');
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
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();
});
}
}