You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When migrating to extend a type with a new property, I'm asked if I altered the property on that type. This question doesn't make sense because the property did not exist on the type before this migration to extend it, adding the property.
Answering y appears to result in migration to the desired schema, but the question doesn't make sense in the context.
Steps to Reproduce:
Migrate this schema:
moduledefault {
type Person;
}
Update the schema to this and migrate:
moduledefault {
type Person extending HasMoney;
abstracttype HasMoney {
required pounds: int64;
}
}
Output:
did you create scalar type 'default::Money'? [y,n,l,c,b,s,q,?]
> y
did you create object type 'default::HasMoney'? [y,n,l,c,b,s,q,?]
> y
did you alter object type 'default::Person'? [y,n,l,c,b,s,q,?]
> y
Please specify an expression to populate existing objects in order to make property 'pounds' of object type 'default::Person' required:
fill_expr> <default::Money>0
did you alter property 'pounds' of object type 'default::Person'? [y,n,l,c,b,s,q,?]
>
The text was updated successfully, but these errors were encountered:
When migrating to extend a type with a new property, I'm asked if I altered the property on that type. This question doesn't make sense because the property did not exist on the type before this migration to extend it, adding the property.
Answering
y
appears to result in migration to the desired schema, but the question doesn't make sense in the context.Steps to Reproduce:
Output:
The text was updated successfully, but these errors were encountered: