Skip to content
Snippets Groups Projects
Commit e9327044 authored by Andy Yates's avatar Andy Yates
Browse files

Only remove tables which are bak and backup to avoid untintentional removal of...

Only remove tables which are bak and backup to avoid untintentional removal of temp tables like tmp_individual_genotype
parent 98a42a30
No related branches found
No related tags found
No related merge requests found
......@@ -133,13 +133,13 @@ else {
push(@databases, $support->param('dbname'));
}
# find all temporary and backup tables
# find all backup tables
my @tables;
my @patterns = map { '%'.$_.'%' } qw/tmp temp bak backup/;
my @patterns = map { '%\\_'.$_.'%' } qw/bak backup/;
if($support->param('mart')) {
if($support->user_proceed('--mart was specified on the command line. Do not run this during a mart build. Do you wish to continue?')) {
push(@patterns, 'MTMP\_%');
push(@patterns, 'MTMP\\_%');
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment