go-gorm / go-gorm/datatypes

Add Enum type support for Postgres

Open
#236 0 comments 5 reactions 1 assignee Claimed by @jinzhu View on GitHub
Dominant language
Go
Stars
831
Forks
124
PR merge metrics
No merged PRs in 30d

Description

## Describe the feature

An enum type that with automigration support in MySQL and Postgres.

## Motivation

At one point in time, GORM supported enum types that worked with `automigrate` in Postgres, but since V2 that support appears to have been deprecated. Given that there is still a ton of documentation around that indicates that GORM supports enum types for Postgres, but all of it documents an approach that no longer works in V2, it seems like that is something that would appropriately handled here.

## Related Issues

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.