edgedb-cli icon indicating copy to clipboard operation
edgedb-cli copied to clipboard

Migration error when attempting to make property required in abstract type

Open VictorPruefer opened this issue 1 year ago • 0 comments

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

VictorPruefer avatar Mar 30 '24 23:03 VictorPruefer