parent
73cc701ad9
commit
3f7d684233
@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
|
|
||||||
return new class extends Migration
|
|
||||||
{
|
|
||||||
public function up(): void
|
|
||||||
{
|
|
||||||
Schema::table('admin_roles', function (Blueprint $table) {
|
|
||||||
$table->boolean('full_access')->default(false)->after('is_system');
|
|
||||||
});
|
|
||||||
|
|
||||||
DB::table('admin_roles')->where('slug', 'super_admin')->update(['full_access' => true]);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(): void
|
|
||||||
{
|
|
||||||
Schema::table('admin_roles', function (Blueprint $table) {
|
|
||||||
$table->dropColumn('full_access');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
Loading…
Reference in new issue