From 69489585bfa8a973d15af87ae83ea86c43c2576f Mon Sep 17 00:00:00 2001 From: Matthew Connelly Date: Sat, 14 Nov 2015 05:16:46 +0000 Subject: [PATCH] Potential fix for schema deploy issue --- lib/App/WerePaste.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/App/WerePaste.pm b/lib/App/WerePaste.pm index d18701d..7f6ff1d 100644 --- a/lib/App/WerePaste.pm +++ b/lib/App/WerePaste.pm @@ -13,7 +13,9 @@ my $lastexpunge = 0; sub DeploySchema { # TODO: figure out how to ensure schema is deployed without producing "table already exists" errors when it is already deployed + no warnings; eval {schema->deploy}; + use warnings; } sub DateTimeToQueryable { my $dt = DateTime->now(time_zone => config->{tz});