Manual talk:Hooks/LoadExtensionSchemaUpdates

An extension schema update function
What if I want to have an extension run a function? Right now, I use this code, which sucks because it runs the function on every page load, rather than just when update.php is run: Leucosticte (talk) 01:50, 24 March 2014 (UTC)

Database Prefix?
How do you take care of the database prefix ($wgDBprefix) with $updater->addExtensionIndex? --77.246.193.30 19:10, 5 September 2014 (UTC)
 * Okay, found it here --77.246.193.30 19:35, 5 September 2014 (UTC)

sql directory
I just added a note about using the sql/ directory for extensions' SQL files. This isn't the only name that's used, but it's the most common:

find mediawiki-extensions/ -name '*.sql' | xargs -I{} dirname {} | xargs -I{} basename {} | sort | uniq -c | sort -nr 241 sql 112 db_patches 60 db    57 patches 48 mysql 36 archives 33 Incremental 29 postgres 23 schema-changes 14 snippets 13 oracle

—Sam Wilson 05:26, 21 September 2017 (UTC)