Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π FIX: sqlalchemy v2 API warning (#5177)
This commit fixes a warning that is generated by the sqlalchemy: SAWarning: relationship 'DbLink.input' will copy column db_dbnode.id to column db_dblink.input_id, which conflicts with relationship(s): 'DbNode.inputs_q' (copies db_dbnode.id to db_dblink.input_id), 'DbNode.outputs_q' (copies db_dbnode.id to db_dblink.input_id). If this is not the intention, consider if these relationships should be linked with back_populates, or if viewonly=True should be applied to one or more if they are read-only. For the less common case that foreign key constraints are partially overlapping, the orm.foreign() annotation can be used to isolate the columns that should be written towards. To silence this warning, add the parameter 'overlaps="inputs_q,outputs_q"' to the 'DbLink.input' relationship. Note a similar fix was made in aldjemy/aldjemy#199
- Loading branch information