apostrophecms / apostrophe

A full-featured, open-source content management framework built with Node.js that empowers organizations by combining in-context editing and headless architecture in a full-stack JS environment.
https://apostrophecms.com
MIT License
4.34k stars 592 forks source link

fix oversights in add missing schema fields #4736

Closed boutell closed 6 days ago

boutell commented 1 week ago

Fix issues that came up in testbed.

linear[bot] commented 1 week ago

PRO-6472 Undefined schema properties should be added to the database automatically

haroun commented 6 days ago

@boutell we might need to explain in the doc the new behavior, specially for folks who change the schema and create a migration in the form

if the field value does not exist, set the value to something other than the default (example, I want new pieces to use the default in the admin UI but I want all existing pieces to have another value using a migration)

boutell commented 6 days ago

Good point, we should document this in the migrations docs.