Skip to content

Commit

Permalink
Merge pull request #64 from Vizzuality/cms/change_total_marine_area_t…
Browse files Browse the repository at this point in the history
…o_decimal

changed locations.total_marine_area to decimal
  • Loading branch information
Agnieszka Figiel authored Nov 21, 2023
2 parents dc8ca1d + 5c22661 commit b16b8ae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions cms/src/api/location/content-types/location/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@
"required": true
},
"totalMarineArea": {
"type": "integer",
"type": "decimal",
"description": "Total marine area in km2",
"required": true,
"min": 0
"min": 0,
"column": {
"defaultTo": 0,
"type": "decimal",
"args": [
12,
2
]
}
},
"type": {
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ export interface ApiLocationLocation extends Schema.CollectionType {
attributes: {
code: Attribute.String & Attribute.Required & Attribute.Unique;
name: Attribute.String & Attribute.Required;
totalMarineArea: Attribute.Integer &
totalMarineArea: Attribute.Decimal &
Attribute.Required &
Attribute.SetMinMax<{
min: 0;
Expand Down

0 comments on commit b16b8ae

Please sign in to comment.