Skip to content

Postgres: AutoMigrate re-migrates everytime for some types #6557

@moolitayer

Description

@moolitayer

GORM Playground Link

go-gorm/playground#646

Description

Every time we run AutoMigrage we get re-migration for certain specification of types:

# Types
type:character varying
type:timestamp with time zone
type:varchar[]

A workaround is to specify the types in a different way (see reproduction) but the required types seems sphoradic.
Not sure why, but the issue did not force migration before we upgraded GORM and the Postgres driver.

See the attached reproduction for details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions