aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/DB/Factories.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/DB/Factories.pm b/perllib/FixMyStreet/DB/Factories.pm
index 66148ad61..56cff280b 100644
--- a/perllib/FixMyStreet/DB/Factories.pm
+++ b/perllib/FixMyStreet/DB/Factories.pm
@@ -6,6 +6,7 @@ use FixMyStreet::DB;
package FixMyStreet::DB::Factories;
+use Path::Tiny;
my $db;
my $opt;
@@ -25,6 +26,7 @@ sub setup {
}
if ($opt->empty) {
+ path(FixMyStreet->path_to('web/photo'))->remove_tree({ keep_root => 1 });
$db->dbh->do(q{
DO
$func$