Skip to content

Postgres: AutoMigrate not stable for type:varchar;default:'' #6543

@moolitayer

Description

@moolitayer

GORM Playground Link

go-gorm/playground#644

Description

Every time we run AutoMigrage we get the same

ALTER TABLE "X"."Y" ALTER COLUMN "Z" SET DEFAULT '';;

Even thought the column definition is already correct. We currently cannot ignore this as we generate migration files for every PR that changes the schema. Also no known workaround.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions