X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FScores.hs;h=571f6b383833da7c5edba1f146b25cb6fe7e15f0;hb=cb5fd814ce4dbb761ebbff4771f16d97b1910173;hp=403727e5cfd7e7a11dd917524fe891146abd39d9;hpb=8c7f33d76981a27a4fde6271dc71105b23adc5a1;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/Scores.hs b/src/TSN/XML/Scores.hs index 403727e..571f6b3 100644 --- a/src/TSN/XML/Scores.hs +++ b/src/TSN/XML/Scores.hs @@ -30,7 +30,7 @@ import Data.Tuple.Curry ( uncurryN ) import Data.Typeable ( Typeable ) import Database.Groundhog ( countAll, - executeRaw, + deleteAll, insert, insert_, migrate, @@ -385,7 +385,7 @@ mkPersist tsn_codegen_config [groundhog| - { name: status_text, dbName: status_text } - entity: ScoreGame_ScoreGameTeam - dbName: scores__scores_games_teams + dbName: scores_games__scores_games_teams constructors: - name: ScoreGame_ScoreGameTeam fields: @@ -618,7 +618,7 @@ test_on_delete_cascade = testGroup "cascading delete tests" migrate f _ <- dbimport score -- No idea how 'delete' works, so do this instead. - executeRaw False "DELETE FROM scores;" [] + deleteAll a count_a <- countAll a count_b <- countAll b count_c <- countAll c