2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 13:37:13 +08:00
Files
panel/database/migrations/2022_10_14_232100_create_websites_table.php
2022-11-17 00:18:56 +08:00

39 lines
1.0 KiB
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('websites', function (Blueprint $table) {
$table->id();
$table->string('name')->index()->comment('网站名称');
$table->boolean('status')->comment('是否运行');
$table->string('path')->comment('网站路径');
$table->integer('php')->comment('PHP版本');
$table->boolean('ssl')->comment('是否启用SSL');
$table->dateTime('ssl_date')->comment('SSL到期时间')->nullable();
$table->string('note')->comment('备注')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('websites');
}
};