WPP-Public/akqa-nz-silverstripe-versioneddataobjects

Obsolete fields on migrated data objects throw error

Closed this issue · 4 comments

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.

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.

@stecman, want to have a look at this?

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

Good find! Sounds exactly like this issue.