How do I add and/or modify a database schema?
Things that seem to be possible;
- Adding a subpage to a page.
- Adding a subpage to a database.
- Modify the property values.
Though in each of these scenarios, the database schema has to stay the same. From the docs.
If the parent is a database, the property values of the new page in the properties parameter must conform to the parent database's property schema.
I can confirm that this is the case as I get an error with extra property values using the create page endpoint.
If I create a plugin that uses tables, it's quite a bad user experience to expect someone to build out the entire schema and then point the plugin at it.
It does not seem to be possible to;
- Add a new property to a database.
- Modify or delete an existing property.