X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FNews.hs;h=c42b931cf88e8df1fed92f46c10d6597cad4ef6b;hb=fa27649ae583f6bdc20c54db4fc8f38a382a536c;hp=49be37e932ea3d7414cdb1ab6b9b1d0263243a5d;hpb=19543bcbbb94ae3e153c1a5212ae202c49331478;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/News.hs b/src/TSN/XML/News.hs index 49be37e..c42b931 100644 --- a/src/TSN/XML/News.hs +++ b/src/TSN/XML/News.hs @@ -31,7 +31,7 @@ import Data.Tuple.Curry ( uncurryN ) import Data.Typeable ( Typeable ) import Database.Groundhog ( countAll, - executeRaw, + deleteAll, insert_, migrate, runMigration, @@ -530,8 +530,7 @@ test_on_delete_cascade = testGroup "cascading delete tests" migrate d migrate e _ <- dbimport news - -- No idea how 'delete' works, so do this instead. - executeRaw False "DELETE FROM news;" [] + deleteAll a count_a <- countAll a count_b <- countAll b count_c <- countAll c