Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
5d7e2dfb
Commit
5d7e2dfb
authored
Dec 04, 2019
by
Francesc Guasch
Browse files
wip(backend): remove exposed on removal
issue #1197
parent
7704c070
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain.pm
View file @
5d7e2dfb
...
...
@@ -1487,6 +1487,7 @@ sub _after_remove_domain {
$self
->
_finish_requests_db
();
$self
->
_remove_base_db
();
$self
->
_remove_access_attributes_db
();
$self
->
_remove_ports_db
();
$self
->
_remove_volumes_db
();
$self
->
_remove_bases_vm_db
();
$self
->
_remove_domain_db
();
...
...
@@ -1517,6 +1518,14 @@ sub _remove_domain_cascade($self,$user, $cascade = 1) {
}
}
sub
_remove_ports_db
($self) {
return
if
!
$self
->
{
_data
}
->
{
id
};
my
$sth
=
$$CONNECTOR
->
dbh
->
prepare
("
DELETE FROM domain_ports
"
.
"
WHERE id_domain=?
");
$sth
->
execute
(
$self
->
id
);
$sth
->
finish
;
}
sub
_remove_access_attributes_db
($self) {
return
if
!
$self
->
{
_data
}
->
{
id
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment