X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FGameInfo.hs;h=b7c4c5b4562a0ed57ba4118840ad6c60b631beb8;hb=a6e096bbac16cc51dbf2d5417e90b7efd03a3b7d;hp=bc68f42a490aca44dec9154af21c7488f5e80aa7;hpb=2bf6ea31afc5d87e2c953d44ff89ff7e4ec73c32;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/GameInfo.hs b/src/TSN/XML/GameInfo.hs index bc68f42..b7c4c5b 100644 --- a/src/TSN/XML/GameInfo.hs +++ b/src/TSN/XML/GameInfo.hs @@ -123,6 +123,7 @@ instance DbImport GameInfo where -- mkPersist defaultCodegenConfig [groundhog| - entity: GameInfo + dbName: game_info constructors: - name: GameInfo uniques: @@ -204,7 +205,7 @@ test_dbimport_succeeds = testCase "dbimport succeeds" $ do xmltrees <- mapM unsafe_read_document game_info_test_files let msgs = rights $ map (parse_xml "dummy") xmltrees actual <- withSqliteConn ":memory:" $ runDbConn $ do - runMigration silentMigrationLogger $ do + runMigration silentMigrationLogger $ migrate (undefined :: GameInfo) mapM_ dbimport msgs countAll (undefined :: GameInfo)