edgedb-cli
edgedb-cli copied to clipboard
Extending a required multi link with a union variant causes the migration creator to fail.
https://discord.com/channels/841451783728529451/1159769994465394718/1159769998651314197
- EdgeDB Version: "3.3+d5734dd"
- EdgeDB CLI Version: EdgeDB CLI 3.5.0+e1ad387
- OS Version: ProductName: macOS ProductVersion: 13.4 BuildVersion: 22F2063
I am happy to share our schema / migrations through a private channel.
I'm not clear this is a bug. If I understand, the user is trying to cast to a union of types, which I don't think should be possible. Maybe someone else can have a look too?
@elprans has a copy of my dbschema folder. You should be able to reproduce this by adding a variant to the ContactBookEntrySource type.
e.g. start with
required from_source -> KnownFromVisitingSocialEvent | LinkedinUpload;
and change to
required from_source -> KnownFromVisitingSocialEvent | LinkedinUpload | GoogleCalendar::Calendar;
I have since updated the schema but IIRC this is how I was able to produce the problem.