Add support for multiple color schemes

This commit is contained in:
DariusIII
2026-03-03 15:50:36 +01:00
parent 3c04c580d2
commit ed67cea4cb
28 changed files with 811 additions and 413 deletions
@@ -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('color_scheme', 20)->default('blue')->after('theme_preference');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn('color_scheme');
});
}
};