X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn-import.git;a=blobdiff_plain;f=src%2FTSN%2FXML%2FScores.hs;fp=src%2FTSN%2FXML%2FScores.hs;h=76bf563b09a8ae78be8418c8d79232ab5e5ffa82;hp=f0ce6dea8373a18a3cd5cfeaf2b8f522924889e6;hb=32147474ba5c91452eeb532381f63e88c257a982;hpb=cc0fa217e3d1b3505a34642a68950ef40d3b4007 diff --git a/src/TSN/XML/Scores.hs b/src/TSN/XML/Scores.hs index f0ce6de..76bf563 100644 --- a/src/TSN/XML/Scores.hs +++ b/src/TSN/XML/Scores.hs @@ -32,11 +32,9 @@ import Database.Groundhog ( countAll, deleteAll, insert_, - 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, @@ -629,7 +627,7 @@ test_on_delete_cascade = testGroup "cascading delete tests" let d = undefined :: ScoreGame let e = undefined :: Score_Location actual <- withSqliteConn ":memory:" $ runDbConn $ do - runMigration silentMigrationLogger $ do + runMigrationSilent $ do migrate a migrate b migrate c