Added launch phase delete for EPP

This commit is contained in:
Pinga 2023-12-20 20:39:36 +02:00
parent de119b013f
commit 7e34dd7501
5 changed files with 196 additions and 169 deletions

View file

@ -1324,36 +1324,7 @@ class ApplicationsController extends Controller
try {
$db->beginTransaction();
$hostIds = $db->select(
'SELECT id FROM host WHERE domain_id = ?',
[$domain_id]
);
foreach ($hostIds as $host) {
$host_id = $host['id'];
// Delete operations
$db->delete(
'host_addr',
[
'host_id' => $host_id
]
);
$db->delete(
'host_status',
[
'host_id' => $host_id
]
);
$db->delete(
'application_host_map',
[
'host_id' => $host_id
]
);
}
// Delete domain related records
$db->delete(
'application_contact_map',