schickere bestellbestätigung und user role detaults auf "user" gesetzt.

This commit is contained in:
Codex Agent
2025-12-23 10:33:06 +01:00
parent ed5c1918fc
commit 886b24b06b
8 changed files with 409 additions and 12 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
if (Schema::getConnection()->getDriverName() === 'sqlite') {
return;
}
DB::statement("ALTER TABLE users ALTER COLUMN role SET DEFAULT 'user'");
}
/**
* Reverse the migrations.
*/
public function down(): void
{
if (Schema::getConnection()->getDriverName() === 'sqlite') {
return;
}
DB::statement("ALTER TABLE users ALTER COLUMN role SET DEFAULT 'super_admin'");
}
};