From b860b46e5232182d9ad5462334c0f4025b5231ee Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 21 Apr 2019 17:45:25 +0200 Subject: database migrate: Use truncate --- lib/Travelynx/Command/database.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } ); -- cgit v1.2.3