From 0eeb4d561ab478747d721db4a0f015b7b976fb32 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 10 Mar 2017 01:13:25 +0100 Subject: Run migration --- bragi/bar.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'bragi') diff --git a/bragi/bar.hs b/bragi/bar.hs index 43e1306b..067e5af4 100755 --- a/bragi/bar.hs +++ b/bragi/bar.hs @@ -69,6 +69,7 @@ instance YesodPersist BarInventory where main = runStderrLoggingT . withPostgresqlPool "" 5 . runReaderT $ do sqlPool <- ask + mapM_ ($(logWarnS) "DB") =<< runSqlPool (runMigrationSilent migrateAll) sqlPool liftIO . warpEnv $ BarInventory{..} -- cgit v1.2.3