Hello,
I want to update a persistent record table to change the columns default values, but the function context.getSchemaUpdater().updatePersistentRecords() only has any effect if I'm adding a new column, otherwise, the table just stay the same.
Is there a way programmatically?
Thanks!
Are you expecting it to update existing instances of that record or are you looking at something else to change?
Defaults can only be set for a given column once, in our current ORM + SQLite combo. So either live with your choice, if it's already deployed to multiple gateways, or manually drop the table before your module recreates it (if it's a single gateway you can), or add an additional column with the new default and handle it with business logic.