X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn-import.git;a=blobdiff_plain;f=src%2FTSN%2FXML%2FAutoRacingResults.hs;fp=src%2FTSN%2FXML%2FAutoRacingResults.hs;h=e51fff852aabac0cb6c25ebc6c4e524bd5b0c310;hp=e540e06a8d4ceae7842f0e3886c26d99d8437a90;hb=32147474ba5c91452eeb532381f63e88c257a982;hpb=cc0fa217e3d1b3505a34642a68950ef40d3b4007 diff --git a/src/TSN/XML/AutoRacingResults.hs b/src/TSN/XML/AutoRacingResults.hs index e540e06..e51fff8 100644 --- a/src/TSN/XML/AutoRacingResults.hs +++ b/src/TSN/XML/AutoRacingResults.hs @@ -33,11 +33,9 @@ import qualified Data.Vector.HFixed as H ( HVector, cons, convert ) import Database.Groundhog ( countAll, deleteAll, - migrate, - runMigration, - silentMigrationLogger ) + migrate ) 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, @@ -664,7 +662,7 @@ test_on_delete_cascade = testGroup "cascading delete tests" let c = undefined :: AutoRacingResultsRaceInformation actual <- withSqliteConn ":memory:" $ runDbConn $ do - runMigration silentMigrationLogger $ do + runMigrationSilent $ do migrate a migrate b migrate c