We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Overheads are not deleted when its Project is deleted.
I added a "cascade='all'" to the Overheads relationship in Projects.
"cascade='all'"
But then deleting a Project caused a SQLAlchemy error:
StaleDataError: DELETE statement on table many to many
I'm assuming from the many-to-many relationship between Overheads and BudgetItems.
Using the solution here: http://stackoverflow.com/questions/28824401/sqlalchemy-attempting-to-twice-delete-many-to-many-secondary-relationship And adding engine.dialect.supports_sane_rowcount = engine.dialect.supports_sane_multi_rowcount = False to init.py fixed the error.
engine.dialect.supports_sane_rowcount = engine.dialect.supports_sane_multi_rowcount = False
Keeping this issue open in case there are any side effects.
The text was updated successfully, but these errors were encountered:
Fixed valuation markup issues. Added script to add BudgetTotal column…
af891d9
… to valuation markup. Added a solution to #218 for overhead delete issue.
No branches or pull requests
Overheads are not deleted when its Project is deleted.
I added a
"cascade='all'"
to the Overheads relationship in Projects.But then deleting a Project caused a SQLAlchemy error:
I'm assuming from the many-to-many relationship between Overheads and BudgetItems.
Using the solution here: http://stackoverflow.com/questions/28824401/sqlalchemy-attempting-to-twice-delete-many-to-many-secondary-relationship
And adding
engine.dialect.supports_sane_rowcount = engine.dialect.supports_sane_multi_rowcount = False
to init.py fixed the error.
Keeping this issue open in case there are any side effects.
The text was updated successfully, but these errors were encountered: