Single table inheritance causing Settings error
I feel like something like this has happened before... but couldn't find any evidence in the old issues, so sorry if we talked about this before.
An error happening from following:
>>> from ramsis.datamodel.settings import Settings
(...)
sqlalchemy.exc.ArgumentError: Column 'project_id' on class <class 'ramsis.datamodel.settings.ProjectModelSettings'> conflicts with existing column 'settings.project_id'
It seems like if the project_id column is declared once in the child table, if another child wants to use the same column name then problems can arise. The solution is described here:
https://docs.sqlalchemy.org/en/14/orm/inheritance.html#resolving-column-conflicts
So I have done this and seems to work ok so far.