Skip to content

Cannot resolve migration dropping a required property if a DML function is involved #8377

@dnwpark

Description

@dnwpark

When migrating from:

  type Foo {
    required a: str;
  }

  function insert_foo(data: json) -> Foo {
    using (
      insert Foo {
        a := <str>data['a'],
      }
    );
  };

to:

  type Foo {
  }

  function insert_foo(data: json) -> Foo {
    using (
      insert Foo {
      }
    );
  };

Using gel migration create to resolve the migration seems unable to figure out what to do.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions