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

Migration error when attempting to make property required in abstract type #1271

Open
VictorPruefer opened this issue Mar 30, 2024 · 0 comments

Comments

@VictorPruefer
Copy link

I'm trying to make a property required, in an abstract type, but fail to create a migration due to an error.

Steps to Reproduce:

  1. Abstract type (e.g. TeamOwnable) with an optional property (e.g. team), applied migration.
  2. Ensure no entry without a team exists.
  3. Change the property to required and try to migrate.
  4. As fill expression during the migration, use assert_exists(.team) as described here

The migration fails with the following error:
edgedb error: EdgeDB could not resolve migration with the provided answers. Please retry with different answers.

No matter which fill expression I use, the migration fails. Any workaround idea is appreciated.

  • EdgeDB Version: "4.7+45e4acc"
  • EdgeDB CLI Version: 4.1.0+a8fe4d7
  • OS Version: macOS 13.6
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

No branches or pull requests

1 participant