Remove unnecessary database usage for view creation

This commit is contained in:
Michael Snoyman 2014-08-25 17:49:05 +03:00
parent af9a88444e
commit fe12a78407

View File

@ -172,8 +172,7 @@ makeFoundation useEcho conf = do
, ("no-bounds", viewNoBounds)
, ("unchanged", viewUnchanged)
]
forM_ views $ \(name, func) ->
runResourceT $ flip (Database.Persist.runPool dbconf) p $ createView
forM_ views $ \(name, func) -> runResourceT $ createView
name
func
(sourceHistory uploadHistory)