summaryrefslogtreecommitdiffstats
path: root/lib/App/BorgRestore
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2019-09-28 10:36:19 +0200
committerFlorian Pritz <bluewind@xinu.at>2019-09-28 15:25:57 +0200
commitd92c40da67dd45e0d01e6808e85f1477dce45b89 (patch)
tree4af6910ffaa7a7c909b4ca850e799a226b715593 /lib/App/BorgRestore
parentfc4f3d0f055708675a1fec9109daf6137678e8df (diff)
downloadApp-BorgRestore-d92c40da67dd45e0d01e6808e85f1477dce45b89.tar.gz
App-BorgRestore-d92c40da67dd45e0d01e6808e85f1477dce45b89.tar.xz
DB: Use get_archive_id instead of _prefix_archive_id
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'lib/App/BorgRestore')
-rw-r--r--lib/App/BorgRestore/DB.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/App/BorgRestore/DB.pm b/lib/App/BorgRestore/DB.pm
index 62dc728..fbbd1f7 100644
--- a/lib/App/BorgRestore/DB.pm
+++ b/lib/App/BorgRestore/DB.pm
@@ -116,7 +116,7 @@ method add_archive_name($archive) {
}
method _add_column_to_table($table, $column) {
- my $st = $self->{dbh}->prepare('alter table `'.$table.'` add column `'._prefix_archive_id($column).'` integer;');
+ my $st = $self->{dbh}->prepare('alter table `'.$table.'` add column `'.$self->get_archive_id($column).'` integer;');
$st->execute();
}
@@ -132,7 +132,7 @@ method remove_archive($archive) {
$self->_add_column_to_table("files_new", $archive);
}
- my @columns_to_copy = map {'`'._prefix_archive_id($_).'`'} @keep_archives;
+ my @columns_to_copy = map {'`'.$self->get_archive_id($_).'`'} @keep_archives;
my @timestamp_columns_to_copy = @columns_to_copy;
@columns_to_copy = ('`path`', @columns_to_copy);