summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/database.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-21 17:45:25 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-21 17:45:25 +0200
commitb860b46e5232182d9ad5462334c0f4025b5231ee (patch)
tree67f4957112538f22b8f2ae3507aa19802f684ec5 /lib/Travelynx/Command/database.pm
parent07c6e8878ba6130882633b7ddb408eae9a0179f2 (diff)
database migrate: Use truncate
Diffstat (limited to 'lib/Travelynx/Command/database.pm')
-rw-r--r--lib/Travelynx/Command/database.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/database.pm b/lib/Travelynx/Command/database.pm
index 7a9aed3..6f7e35d 100644
--- a/lib/Travelynx/Command/database.pm
+++ b/lib/Travelynx/Command/database.pm
@@ -132,7 +132,7 @@ my @migrations = (
my ($dbh) = @_;
return $dbh->do(
qq{
- delete from journey_stats;
+ truncate journey_stats;
update schema_version set version = 3;
}
);