X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn-import.git;a=blobdiff_plain;f=src%2FTSN%2FXML%2FOdds.hs;fp=src%2FTSN%2FXML%2FOdds.hs;h=bedb6882b55d3581c8b8651f110a1b9fe335aa2c;hp=6e47380c62802e856b59a9c438cf53f831da298d;hb=32147474ba5c91452eeb532381f63e88c257a982;hpb=cc0fa217e3d1b3505a34642a68950ef40d3b4007 diff --git a/src/TSN/XML/Odds.hs b/src/TSN/XML/Odds.hs index 6e47380..bedb688 100644 --- a/src/TSN/XML/Odds.hs +++ b/src/TSN/XML/Odds.hs @@ -37,11 +37,9 @@ import Database.Groundhog ( deleteAll, insert_, migrate, - runMigration, - silentMigrationLogger, update ) import Database.Groundhog.Core ( DefaultKey ) -import Database.Groundhog.Generic ( runDbConn ) +import Database.Groundhog.Generic ( runDbConn, runMigrationSilent ) import Database.Groundhog.Sqlite ( withSqliteConn ) import Database.Groundhog.TH ( groundhog, @@ -897,7 +895,7 @@ test_on_delete_cascade = testGroup "cascading delete tests" let d = undefined :: OddsGame let e = undefined :: OddsGameLine actual <- withSqliteConn ":memory:" $ runDbConn $ do - runMigration silentMigrationLogger $ do + runMigrationSilent $ do migrate a migrate b migrate c