summaryrefslogtreecommitdiff
path: root/bragi
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-10 01:13:25 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-10 01:13:25 +0100
commit0eeb4d561ab478747d721db4a0f015b7b976fb32 (patch)
tree9d2f937273e70576e4e7ae52bd5cde128558b67e /bragi
parent0fb12fb1b1f56df29e21f47d0560abb696d82fcf (diff)
downloadnixos-0eeb4d561ab478747d721db4a0f015b7b976fb32.tar
nixos-0eeb4d561ab478747d721db4a0f015b7b976fb32.tar.gz
nixos-0eeb4d561ab478747d721db4a0f015b7b976fb32.tar.bz2
nixos-0eeb4d561ab478747d721db4a0f015b7b976fb32.tar.xz
nixos-0eeb4d561ab478747d721db4a0f015b7b976fb32.zip
Run migration
Diffstat (limited to 'bragi')
-rwxr-xr-xbragi/bar.hs1
1 files changed, 1 insertions, 0 deletions
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
69 69
70main = runStderrLoggingT . withPostgresqlPool "" 5 . runReaderT $ do 70main = runStderrLoggingT . withPostgresqlPool "" 5 . runReaderT $ do
71 sqlPool <- ask 71 sqlPool <- ask
72 mapM_ ($(logWarnS) "DB") =<< runSqlPool (runMigrationSilent migrateAll) sqlPool
72 liftIO . warpEnv $ BarInventory{..} 73 liftIO . warpEnv $ BarInventory{..}
73 74
74 75