From d92c40da67dd45e0d01e6808e85f1477dce45b89 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 28 Sep 2019 10:36:19 +0200 Subject: DB: Use get_archive_id instead of _prefix_archive_id Signed-off-by: Florian Pritz --- lib/App/BorgRestore/DB.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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); -- cgit v1.2.3-24-g4f1b