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

37 lines
932 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('databases', function (Blueprint $table) {
$table->id();
$table->string('name')->index()->comment('数据库名称');
$table->string('type')->comment('数据库类型');
$table->string('username')->comment('数据库用户名');
$table->string('password')->comment('数据库密码')->nullable();
$table->string('note')->comment('备注')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('databases');
}
};