andrew fabbro wrote:
I'm curious if there is any documentation on the "rules" for updating a mediawiki SQL database. Specifically, something like "if you want to delete a page, modify these tables and fields" or "here are the steps to insert a page into the database".
Such a documentation would be nice to have (and brion has already provided a good start), but I fear it will be hard to keep up to date. Changes in the code can often affect these procedures.
It would probably be nice if there was a single function in our PHP code, createPage() or something, that does everything. But even with that, you'd have to write your own stuff in PHP.
If I were you I'd instead go for Brion's latter suggestion. Don't manipulate the DB directly; send an HTTP request to the wiki and let it do it. It's probably easier for you to code, and it's also less prone to requiring future maintenance whenever small things change.
Timwi