feat: add inerba/filament-db-config
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$tableName = config('db-config.table_name', 'db_config');
|
||||
|
||||
Schema::create($tableName, function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
$table->string('group');
|
||||
|
||||
$table->string('key');
|
||||
|
||||
$table->json('settings')->nullable();
|
||||
|
||||
$table->unique(['group', 'key']);
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user