Obsolete fields on migrated data objects throw error
Closed this issue · 4 comments
MattyBalaam commented
I have noticed that if the database table has some obsolete fields no longer in your data object class then attempting to publish for the first time results in an error.
This could of course be a Silverstripe issue, I am using 3.1.6.
MattyBalaam commented
I can easily reproduce by adding a new column in the database to the unprefixed table. To stop the error the _version prefixed table needs the same column.
glenn-bautista commented
There's an issue on SilverStripe that I think resembles what is being described.
Versioned not ignoring obsolete fields: silverstripe/silverstripe-framework#2610
Might be helpful
MattyBalaam commented
Good find! Sounds exactly like this issue.