Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dnwpark opened this issue Feb 24, 2025 · 0 comments · May be fixed by #8402
Open

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

dnwpark opened this issue Feb 24, 2025 · 0 comments · May be fixed by #8402
Assignees

Comments

@dnwpark
Copy link
Contributor

dnwpark commented Feb 24, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant