Skip to content

Commit

Permalink
fix: NAICS code should be converted to a string when imported from swrs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Apr 23, 2020
1 parent 96b3117 commit 2c4f8e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/server/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6656,7 +6656,7 @@ type FacilityDatum {
latitude: BigFloat
longitude: BigFloat
naicsClassification: String
naicsCode: Int
naicsCode: String
reportId: Int
reportingYear: Int
swrsFacilityId: Int
Expand Down
2 changes: 1 addition & 1 deletion app/server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25194,7 +25194,7 @@
"args": [],
"type": {
"kind": "SCALAR",
"name": "Int",
"name": "String",
"ofType": null
},
"isDeprecated": false,
Expand Down
4 changes: 2 additions & 2 deletions schema/deploy/swrs_functions/get_swrs_facility_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ begin;
facility_name varchar(1000),
facility_type varchar(1000),
bcghgid varchar(1000),
naics_code integer,
naics_code varchar(1000),
naics_classification varchar(1000),
latitude numeric,
longitude numeric,
Expand Down Expand Up @@ -52,7 +52,7 @@ begin;
_fac.facility_name,
_fac.facility_type,
_fac.identifier_value,
_fac.naics_code,
_fac.naics_code::varchar(1000),
_fac.naics_classification,
_fac.latitude,
_fac.longitude,
Expand Down

0 comments on commit 2c4f8e3

Please sign in to comment.