application.schema.automigration#
The application.schema.automigration
flag enables Structr to automatically remove or modify parts of the buit-in schema that have changed due to a version upgrade.
Please note that the automatic migration can only fix specific modifications like added or removed schema methods. It might be necessary to manually amend the schema, especially when upgrading older instances or schemas that define lots of new properties or methods on built-in types.
Example
application.schema.automigration = true
Note
When upgrading to Structr 3.0, the automigration flag is necessary to allow the schema upgrade.