Skip to content

Loosen auto-migrate restrictions on enums: allow adding new variants at the tail #2822

@gefjon

Description

@gefjon

Treat the variants of a sum type as an ordered list. Require that the pre-migration type is a prefix of the post-migration type, rather than exactly equal. Add a smoketest that it is possible to add a new enum variant in a publish without -c.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions