fix: allow super_admin role on users table

This commit is contained in:
jeremy bayse
2026-03-29 11:05:45 +02:00
parent 2e423445f5
commit a3057aae6f

View File

@@ -0,0 +1,28 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('role')->default('candidate')->change();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->enum('role', ['admin', 'candidate'])->default('candidate')->change();
});
}
};