From: Michael Orlitzky Date: Wed, 23 Jul 2014 19:26:13 +0000 (-0400) Subject: Rename some unique constraints for consistency. X-Git-Tag: 0.0.9~9 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=b6ba5347fa75f33f63b2eb358d5ab421392dd52e;p=dead%2Fhtsn-import.git Rename some unique constraints for consistency. --- diff --git a/src/TSN/XML/AutoRacingSchedule.hs b/src/TSN/XML/AutoRacingSchedule.hs index 69b9b35..a7d683a 100644 --- a/src/TSN/XML/AutoRacingSchedule.hs +++ b/src/TSN/XML/AutoRacingSchedule.hs @@ -363,7 +363,7 @@ mkPersist tsn_codegen_config [groundhog| constructors: - name: AutoRacingSchedule uniques: - - name: unique_auto_racing_schedule + - name: unique_auto_racing_schedules type: constraint # Prevent multiple imports of the same message. fields: [db_xml_file_id] diff --git a/src/TSN/XML/News.hs b/src/TSN/XML/News.hs index 10c5195..513bf5c 100644 --- a/src/TSN/XML/News.hs +++ b/src/TSN/XML/News.hs @@ -291,7 +291,7 @@ mkPersist defaultCodegenConfig [groundhog| constructors: - name: NewsTeam uniques: - - name: unique_news_team + - name: unique_news_teams type: constraint fields: [team_name] diff --git a/src/TSN/XML/Odds.hs b/src/TSN/XML/Odds.hs index 8e36b3d..444371a 100644 --- a/src/TSN/XML/Odds.hs +++ b/src/TSN/XML/Odds.hs @@ -450,7 +450,7 @@ mkPersist tsn_codegen_config [groundhog| constructors: - name: OddsCasino uniques: - - name: unique_odds_casino + - name: unique_odds_casinos type: constraint fields: [casino_client_id]