https://bugzilla.wikimedia.org/show_bug.cgi?id=28983
--- Comment #8 from Chad H. <[email protected]> 2011-06-02 16:10:35 UTC --- Actually, I'm pretty sure this can be done already. Example: $wgHooks['LoadExtensionSchemaUpdates'][] = 'myExtUpdate'; function myExtUpdate( $updater ) { global $IP; $updater->addExtensionUpdate( array( 'addTable', 'foobar', "$IP/extensions/FooBar/foobar.sql", true ) ); $updater->addExtensionUpdate( array( 'mySpecialUpdate' ) ); } function mySpecialUpdate() { // do something } This behavior is well documented and used in dozens of extensions. See DatabaseUpdater::runUpdates()/doUpdates() and DatabaseInstaller::createExtensionTables() if you don't believe me. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
