Hacky to make VACUUM work

This commit is contained in:
Michael Snoyman 2015-05-15 06:13:49 +03:00
parent 7533b9b014
commit fac5b9c4f4

View File

@ -250,7 +250,7 @@ createStackageDatabase fp = liftIO $ do
Left _ -> putStrLn $ "Skipping: " ++ fpToText fp'
Right _ -> action
)
flip runSqlPool pool $ rawExecute "VACUUM" []
flip runSqlPool pool $ mapM_ (flip rawExecute []) ["COMMIT", "VACUUM", "BEGIN"]
getDeprecated' :: [Deprecation] -> Tar.Entry -> [Deprecation]
getDeprecated' orig e =