Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: REQ: for all coders: Uninstall process please…

oh, btw, we were to implement a install/uninstall process when i was in WP, but that was never done when i left… the process is quite simple, we simply have a array of tables or fields to generate, that are installed/uninstalled on due time. the coder does not have to generate the whole process, just have to enter the fields and tables in the right way in the install file.

see how we do it with vBulletin:

$dbalter->fetch_table_info(‘user’);

$dbalter->add_field(array(

‘name’ => ‘itrader_total’,

‘type’ => ‘int’,

‘length’ => ’10’,

‘null’ => false,

‘default’ => ‘0’

), false);

… on uninstall of the product, the process is the same:

$dbalter->fetch_table_info(‘user’);

$dbalter->drop_field(‘itrader_total’);

Skip to toolbar