Add 'centroid' accuracy from the database
It's used by stadiamaps
This commit is contained in:
parent
ac98586425
commit
99dc9a08c0
2 changed files with 5 additions and 0 deletions
|
|
@ -1607,6 +1607,7 @@ const (
|
|||
PublicreportAccuracytypeInterpolated PublicreportAccuracytype = "interpolated"
|
||||
PublicreportAccuracytypeApproximate PublicreportAccuracytype = "approximate"
|
||||
PublicreportAccuracytypeIntersection PublicreportAccuracytype = "intersection"
|
||||
PublicreportAccuracytypeCentroid PublicreportAccuracytype = "centroid"
|
||||
PublicreportAccuracytypeBrowser PublicreportAccuracytype = "browser"
|
||||
PublicreportAccuracytypeNone PublicreportAccuracytype = "none"
|
||||
)
|
||||
|
|
@ -1619,6 +1620,7 @@ func AllPublicreportAccuracytype() []PublicreportAccuracytype {
|
|||
PublicreportAccuracytypeInterpolated,
|
||||
PublicreportAccuracytypeApproximate,
|
||||
PublicreportAccuracytypeIntersection,
|
||||
PublicreportAccuracytypeCentroid,
|
||||
PublicreportAccuracytypeBrowser,
|
||||
PublicreportAccuracytypeNone,
|
||||
}
|
||||
|
|
@ -1638,6 +1640,7 @@ func (e PublicreportAccuracytype) Valid() bool {
|
|||
PublicreportAccuracytypeInterpolated,
|
||||
PublicreportAccuracytypeApproximate,
|
||||
PublicreportAccuracytypeIntersection,
|
||||
PublicreportAccuracytypeCentroid,
|
||||
PublicreportAccuracytypeBrowser,
|
||||
PublicreportAccuracytypeNone:
|
||||
return true
|
||||
|
|
|
|||
2
db/migrations/00097_accuracytype_enum.sql
Normal file
2
db/migrations/00097_accuracytype_enum.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
-- +goose Up
|
||||
ALTER TYPE publicreport.AccuracyType ADD VALUE 'centroid' AFTER 'intersection';
|
||||
Loading…
Add table
Add a link
Reference in a new issue