mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 06:57:19 +08:00
36 lines
849 B
PHP
36 lines
849 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('plugins', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('slug')->unique()->comment('插件标识');
|
|
$table->string('name')->comment('插件名称');
|
|
$table->string('version')->comment('插件版本');
|
|
$table->boolean('show')->comment('是否首页显示')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('plugins');
|
|
}
|
|
};
|