]> gitweb.michael.orlitzky.com - dead/htsn-import.git/blobdiff - src/TSN/XML/GameInfo.hs
Fix Game/SportInfo table names.
[dead/htsn-import.git] / src / TSN / XML / GameInfo.hs
index bc68f42a490aca44dec9154af21c7488f5e80aa7..b7c4c5b4562a0ed57ba4118840ad6c60b631beb8 100644 (file)
@@ -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)