X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fhtsn-import.git;a=blobdiff_plain;f=src%2FTSN%2FXML%2FNews.hs;fp=src%2FTSN%2FXML%2FNews.hs;h=645d1daf1e786e1779e231c672094ce9da2c4754;hp=38288008e459f9e4a2452479cb91354afd76cb9d;hb=32147474ba5c91452eeb532381f63e88c257a982;hpb=cc0fa217e3d1b3505a34642a68950ef40d3b4007 diff --git a/src/TSN/XML/News.hs b/src/TSN/XML/News.hs index 3828800..645d1da 100644 --- a/src/TSN/XML/News.hs +++ b/src/TSN/XML/News.hs @@ -33,11 +33,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, @@ -545,7 +543,7 @@ test_on_delete_cascade = testGroup "cascading delete tests" let d = undefined :: News_Team let e = undefined :: News_Location actual <- withSqliteConn ":memory:" $ runDbConn $ do - runMigration silentMigrationLogger $ do + runMigrationSilent $ do migrate a migrate b migrate c