edgedb
edgedb copied to clipboard
When adding a constraint to User.awards in cards db: InternalServerError: column old.id does not exist
_localdev:scope> alter type User create constraint exclusive on (.awards);
edgedb error: InternalServerError: column old.id does not exist
Server traceback:
edb.errors.InternalServerError: column old.id does not exist
Same happens to me:
type Report {
required name: str;
sim:=.<reports[is Similarity];
trigger create_similarities after insert for each do (
for other_report in (select Report filter .id != __new__.id)
union (
insert Similarity{
reports := DISTINCT {__new__, other_report}
}
unless conflict
)
)
}
type Similarity {
multi reports: Report;
constraint exclusive on (.reports); <-- when adding this
score: float64;
}
This issue seems untouched for over one year. Is there any chance that someone has a look into it?