mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-13 11:46:47 +00:00
🛠️ 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:
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user