Add bulk update gateway endpoint to vCenter API routes
- Introduced a new POST route 'bulk-update-gateway' for bulk updating gateways. - This route is protected by the 'module-vcenter.manager' permission middleware.
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('ip_pool_contacts', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('ip_pool_id')->constrained('ip_pools')->cascadeOnDelete();
|
||||
$table->string('email');
|
||||
$table->enum('type', ['to', 'cc']);
|
||||
$table->timestamps();
|
||||
|
||||
$table->unique(['ip_pool_id', 'email', 'type']);
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('ip_pool_contacts');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user