Skip to content

Commit

Permalink
Remove PGType from creation_options.py enum file.
Browse files Browse the repository at this point in the history
There have been two PGType classes in `app/models` directory.
One came from the `app/models/enum/creation_options.py` file.
The other came from the `app/models/enum/pg_types.py` file.

The "creation option" PGType does not appear to be used anywhere within
the code and is probably some dead code from a refactor...
This enum has two fewer Postgres types than the other -- missing the
"timestamp_wtz" and "ARRAY" types...

This commit removes the "creation option" PGType while keeping the
"pg_types" PGType enum in place.

modified:   app/models/enum/creation_options.py
  • Loading branch information
loganbyers committed Feb 12, 2025
1 parent c15e784 commit f86d2ea
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions app/models/enum/creation_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,24 +61,6 @@ class PartitionType(str, Enum):
range = "range"


class PGType(str, Enum):
bigint = "bigint"
boolean = "boolean"
character_varying = "character varying"
date = "date"
double_precision = "double precision"
geometry = "geometry"
integer = "integer"
jsonb = "jsonb"
numeric = "numeric"
smallint = "smallint"
text = "text"
time = "time"
timestamp = "timestamp"
uuid = "uuid"
xml = "xml"


class ColorMapType(str, Enum):
discrete = "discrete"
discrete_intensity = "discrete_intensity"
Expand Down

0 comments on commit f86d2ea

Please sign in to comment.