Skip to content

Commit 4399f51

Browse files
Update enum PostgreSQL mapping to use native ENUM type
PostgreSQL supports native ENUM via CREATE TYPE ... AS ENUM, which provides similar semantics to MySQL ENUM (efficient storage, value enforcement, definition-order ordering). DataJoint will handle the separate type creation automatically. Co-authored-by: dimitri-yatsenko <dimitri@datajoint.com>
1 parent 2f38734 commit 4399f51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/design/tables/storage-types-spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ for serialized Python objects.
103103
|-----------|-------------|-------|------------|
104104
| `json` | JSON document | `JSON` | `JSONB` |
105105
| `uuid` | UUID | `BINARY(16)` | `UUID` |
106-
| `enum(...)` | Enumeration | `ENUM(...)` | `VARCHAR` + check |
106+
| `enum(...)` | Enumeration | `ENUM(...)` | `CREATE TYPE ... AS ENUM` |
107107

108108
### Native Passthrough Types
109109

0 commit comments

Comments
 (0)