mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 18:27:13 +08:00
34 lines
724 B
PHP
34 lines
724 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->boolean('show')->comment('是否首页显示')->nullable();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('plugins');
|
|
}
|
|
};
|