-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Circular foreign key references #66
Comments
|
I think you mean sample = drop?
|
*fixed :) Yes, exactly its just for traceability. |
Attempting to generate sqlalchemy models via sqlacodegen leads to the following warning/error:
This appears to be the result of two circular foreign key references:
BLSample -> BLSubSample -> BLSampleImage -> BLSample
(viaBLSample.blSubSampleId
)and
DataCollection -> screeningStrategySubWedge -> ScreeningStrategyWedge -> ScreeningStrategy -> Screening -> DataCollection
(viaDataCollection.strategySubWedgeOrigId
).As far as I can tell, both
BLSample.blSubSampleId
andDataCollection.strategySubWedgeOrigId
appear to be unused at DLS. I don't understand what purpose either column serves. Can these columns be removed from the table?The text was updated successfully, but these errors were encountered: