Private
Public Access
1
0

feat: implement server tags management with Proxmox-style color generation and syncing

This commit is contained in:
2025-12-18 20:38:12 -05:00
parent b7547fd01b
commit bdd168d26d
6 changed files with 407 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
<?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('ext_proxmox_servers', function (Blueprint $table) {
// Store tags as JSON array with format: [{"text": "tag1", "color": "#ff0000"}, ...]
// Maximum 3 tags per server
$table->json('tags')->nullable()->after('user_set_icon_prefix');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('ext_proxmox_servers', function (Blueprint $table) {
$table->dropColumn('tags');
});
}
};