You've already forked Atomcms-edit
33 lines
1.1 KiB
PHP
Executable File
33 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('permissions', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('rank_name', 25);
|
|
$table->string('badge', 12)->default('');
|
|
$table->integer('level')->default(1);
|
|
$table->integer('room_effect')->default(0);
|
|
$table->enum('log_commands', ['0', '1'])->default('0');
|
|
$table->string('prefix', 20)->default('');
|
|
$table->string('prefix_color', 7)->default('#000000');
|
|
$table->string('description')->nullable();
|
|
$table->string('job_description')->default('Here to help');
|
|
$table->string('staff_color', 8)->default('#327fa8');
|
|
$table->boolean('hidden_rank')->default(false);
|
|
$table->text('admin_permissions')->nullable();
|
|
});
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('permissions');
|
|
}
|
|
};
|