Skip to content

Support "alter field" in automatic migration generator #205

@m4tx

Description

@m4tx

We should support changing metadata of existing fields in the automatic migration generator. In other words, if someone changes some properties about a database field without changing its name, we should be able to migrate this automatically.

The entry point for this is

fn make_alter_field_operation(
. This will also require adding a new OperationInner variant:
enum OperationInner {

Note that the "alter field" operation will need the old version of the fields modified, too, so that an implementation of Operation::backwards can be created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions