You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code today does not support computed fields.
When sqlalchemy-continuum tried to create the versioned row it also tried to write a value to the computed column thus making an error.
I've tested it, however the function versioned_column_properties isn't seemed to be called when generating the Metadata schema (the columns are still added to the history's table)
As a workaround, you can add 'exclude' to the __versioned__ key, and manually exclude the column, which works
Activity
yuvalek commentedon Oct 31, 2023
My pr excludes computed columns when writing but still creates them in the DB.
yoshpe commentedon May 8, 2024
I've tested it, however the function
versioned_column_propertiesisn't seemed to be called when generating the Metadata schema (the columns are still added to the history's table)As a workaround, you can add 'exclude' to the
__versioned__key, and manually exclude the column, which worksmarksteward commentedon May 8, 2024
Yeah I'm not sure how we'd do this any way other than ignoring them. Suggestions welcome.
yuvalek commentedon May 9, 2024
It is weird because I tested it locally when I wrote it and it did work and excluded the column.