mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-27 14:44:45 +02:00
Added launch phase delete for EPP
This commit is contained in:
parent
de119b013f
commit
7e34dd7501
5 changed files with 196 additions and 169 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue