style updates
This commit is contained in:
@@ -4,13 +4,24 @@ use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void {
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('settings', function (Blueprint $table): void {
|
||||
$table->id(); $table->string('group')->default('general')->index(); $table->string('key');
|
||||
$table->longText('value')->nullable(); $table->string('type')->default('string'); $table->boolean('is_public')->default(false);
|
||||
$table->timestamps(); $table->unique(['group','key']);
|
||||
$table->id();
|
||||
$table->string('group')->default('general')->index();
|
||||
$table->string('key');
|
||||
$table->longText('value')->nullable();
|
||||
$table->string('type')->default('string');
|
||||
$table->boolean('is_public')->default(false);
|
||||
$table->timestamps();
|
||||
$table->unique(['group', 'key']);
|
||||
});
|
||||
}
|
||||
public function down(): void { Schema::dropIfExists('settings'); }
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('settings');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user