Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
6a2d0295
Commit
6a2d0295
authored
Sep 20, 2017
by
Francesc Guasch
Browse files
[#335] Fixed clean of old ISOs data
parent
489f54f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
6a2d0295
...
...
@@ -624,6 +624,10 @@ sub _clean_iso_mini {
my
$sth
=
$CONNECTOR
->
dbh
->
prepare
("
DELETE FROM iso_images WHERE device like ?
");
$sth
->
execute
('
%/mini.iso
');
$sth
->
finish
;
$sth
=
$CONNECTOR
->
dbh
->
prepare
("
DELETE FROM iso_images WHERE url like ? AND rename_file = NULL
");
$sth
->
execute
('
%/mini.iso
');
$sth
->
finish
;
}
sub
_upgrade_tables
{
...
...
@@ -637,13 +641,13 @@ sub _upgrade_tables {
$self
->
_upgrade_table
('
requests
','
at_time
','
int(11) DEFAULT NULL
');
$self
->
_upgrade_table
('
iso_images
','
rename_file
','
varchar(80) DEFAULT NULL
');
$self
->
_clean_iso_mini
();
$self
->
_upgrade_table
('
iso_images
','
md5_url
','
varchar(255)
');
$self
->
_upgrade_table
('
iso_images
','
sha256
','
varchar(255)
');
$self
->
_upgrade_table
('
iso_images
','
sha256_url
','
varchar(255)
');
$self
->
_upgrade_table
('
iso_images
','
file_re
','
char(64)
');
$self
->
_upgrade_table
('
iso_images
','
device
','
varchar(255)
');
$self
->
_upgrade_table
('
iso_images
','
rename_file
','
varchar(80) DEFAULT NULL
');
$self
->
_upgrade_table
('
users
','
language
','
char(3) DEFAULT NULL
');
if
(
$self
->
_upgrade_table
('
users
','
is_external
','
int(11) DEFAULT 0
'))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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