Fix subdomain DNS messaging for Ladill nameservers and retire pending-setup primaries.
Deploy Ladill Hosting / deploy (push) Successful in 47s
Deploy Ladill Hosting / deploy (push) Successful in 47s
Treat ns_auto domains as managed DNS, publish subdomain A records via PowerDNS without failing the UX when the local DNS registry is missing, and promote real linked domains over pending-setup.local placeholders. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?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
|
||||
{
|
||||
if (Schema::hasTable('domain_dns_records')) {
|
||||
return;
|
||||
}
|
||||
|
||||
Schema::create('domain_dns_records', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('domain_id')->constrained('domains')->cascadeOnDelete();
|
||||
$table->string('name');
|
||||
$table->string('type', 20);
|
||||
$table->text('value');
|
||||
$table->unsignedInteger('ttl')->default(3600);
|
||||
$table->unsignedSmallInteger('priority')->nullable();
|
||||
$table->string('source')->default('managed');
|
||||
$table->string('status')->default('pending');
|
||||
$table->timestamp('last_checked_at')->nullable();
|
||||
$table->text('notes')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->index(['domain_id', 'source']);
|
||||
$table->index(['domain_id', 'status']);
|
||||
$table->unique(['domain_id', 'name', 'type', 'value'], 'domain_dns_records_unique');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('domain_dns_records');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user