$wgExtNewFieldshttp://www.mediawiki.org/wiki/Manual:$wgExtNewIndexes is really handy for adding columns to database tables. Is there an equivalent configuration setting for *dropping* columns from tables? (Likewise for dropping indexes.)
Thanks, DanB
________________________________ My email address has changed to danb@cimpress.com. Please update your address book.
Cimpress is the new name for Vistaprint NV, the world’s leader in mass customization. Read more about Cimpress at www.cimpress.com.
________________________________
On Thu Nov 20 2014 at 8:49:14 AM Daniel Barrett danb@cimpress.com wrote:
$wgExtNewFieldshttp://www.mediawiki.org/wiki/Manual:$wgExtNewIndexes is really handy for adding columns to database tables. Is there an equivalent configuration setting for *dropping* columns from tables? (Likewise for dropping indexes.)
Probably, check out the DatabaseUpdater class and its subclasses.
Which, by the way, everyone should be using. Those $wgExtNew* variables should've been deprecated ages ago with new-installer.
-Chad
On Thu Nov 20 2014 at 8:49:14 AM Daniel Barrett danb@cimpress.com wrote:
$wgExtNewFieldshttp://www.mediawiki.org/wiki/Manual:$wgExtNewIndexes is really handy for adding columns to database tables. Is there an equivalent configuration setting for *dropping* columns from tables? (Likewise for dropping indexes.)
Chad replied:
Probably, check out the DatabaseUpdater class and its subclasses. Which, by the way, everyone should be using. Those $wgExtNew* variables should've been deprecated ages ago with new-installer.
Thank you - that worked perfectly. For posterity, this page was very helpful:
http://www.mediawiki.org/wiki/Manual:DatabaseUpdater.php
DanB
________________________________ My email address has changed to danb@cimpress.com. Please update your address book.
Cimpress is the new name for Vistaprint NV, the world’s leader in mass customization. Read more about Cimpress at www.cimpress.com. ________________________________
mediawiki-l@lists.wikimedia.org