🛠️ Add anon column to self-hosted services: Update views, models, forms, and migrations to support anonymous service creation and display

This commit is contained in:
HolgerHatGarKeineNode
2025-12-07 06:16:47 +01:00
parent 9ee7ef1771
commit c4cea2ae7a
4 changed files with 36 additions and 6 deletions

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('self_hosted_services', function (Blueprint $table) {
$table->boolean('anon')->default(false)->after('created_by');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('self_hosted_services', function (Blueprint $table) {
$table->dropColumn('anon');
});
}
};