1 changed files with 32 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||
<?php |
|||
|
|||
use Illuminate\Database\Migrations\Migration; |
|||
use Illuminate\Database\Schema\Blueprint; |
|||
use Illuminate\Support\Facades\Schema; |
|||
|
|||
return new class extends Migration |
|||
{ |
|||
/** |
|||
* Run the migrations. |
|||
*/ |
|||
public function up(): void |
|||
{ |
|||
Schema::create('admin_configs', function (Blueprint $table) { |
|||
$table->increments('id')->comment('配置ID'); |
|||
$table->string('title')->comment('配置名称'); |
|||
$table->string('name')->comment('配置标识'); |
|||
$table->text('content')->nullable()->comment('配置内容'); |
|||
$table->tinyInteger('status')->default(1)->comment('状态:0禁用 1启用'); |
|||
$table->timestamps(); |
|||
$table->softDeletes(); |
|||
}); |
|||
} |
|||
|
|||
/** |
|||
* Reverse the migrations. |
|||
*/ |
|||
public function down(): void |
|||
{ |
|||
Schema::dropIfExists('admin_config'); |
|||
} |
|||
}; |
|||
Loading…
Reference in new issue