X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FTSN%2FXML%2FAutoRacingResults.hs;h=bfc07d178b52c233cc691b19c2f3bab94a7aa3c8;hb=507d72e766f48eb5c162134d67523bcaf2d16a43;hp=96433ee0e7638efd31c257e61e812b12776c4970;hpb=f131e49033be01a131234ea12a0864d6e719a520;p=dead%2Fhtsn-import.git diff --git a/src/TSN/XML/AutoRacingResults.hs b/src/TSN/XML/AutoRacingResults.hs index 96433ee..bfc07d1 100644 --- a/src/TSN/XML/AutoRacingResults.hs +++ b/src/TSN/XML/AutoRacingResults.hs @@ -267,7 +267,7 @@ data MostLapsLeading = data AutoRacingResultsRaceInformation = AutoRacingResultsRaceInformation { -- Note the apostrophe to disambiguate it from the - -- AutoRacingResultsListing filed. + -- AutoRacingResultsListing field. db_auto_racing_results_id' :: DefaultKey AutoRacingResults, db_track_length :: Double, db_track_length_kph :: Double, @@ -391,13 +391,16 @@ mkPersist tsn_codegen_config [groundhog| reference: onDelete: cascade - +# Note the apostrophe in the foreign key. This is to disambiguate +# it from the AutoRacingResultsListing foreign key of the same name. +# We strip it out of the dbName. - entity: AutoRacingResultsRaceInformation dbName: auto_racing_results_race_information constructors: - name: AutoRacingResultsRaceInformation fields: - name: db_auto_racing_results_id' + dbName: auto_racing_results_id reference: onDelete: cascade - name: db_most_laps_leading