🌐 Enhance service management: Add IP address field to forms, views, and database schema

This commit is contained in:
HolgerHatGarKeineNode
2025-12-07 06:04:52 +01:00
parent eb7d792f1c
commit 980b833e80
5 changed files with 64 additions and 2 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->string('ip', 45)->nullable()->after('url_pkdns');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('self_hosted_services', function (Blueprint $table) {
$table->dropColumn('ip');
});
}
};