[MediaWiki-l] Analog to $wgExtNewFields for dropping fields?

Daniel Barrett danb at cimpress.com
Fri Nov 21 18:03:53 UTC 2014


On Thu Nov 20 2014 at 8:49:14 AM Daniel Barrett <danb at cimpress.com> wrote:
>> $wgExtNewFields<http://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 at 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.
________________________________


More information about the MediaWiki-l mailing list