from pntables
Code
// Initialise table array
$pntable = array();
// Full table definition
$pntable['faqanswer'] = DBUtil::getLimitedTablename('faqanswer');
$pntable['faqanswer_column'] = array ('faqid' => 'pn_id',
'question' => 'pn_question',
'urltitle' => 'pn_urltitle',
'answer' => 'pn_answer',
'submittedbyid' => 'pn_submittedbyid',
'answeredbyid' => 'pn_answeredbyid',
'ratingup' => 'pn_ratingup', //added this version
'ratingdown' => 'pn_ratingdown'); //added this version
$pntable['faqanswer_column_def'] = array('faqid' => 'I NOTNULL AUTO PRIMARY',
'question' => 'X DEFAULT NULL',
'urltitle' => "X NOTNULL DEFAULT ''",
'answer' => 'X',
'submittedbyid' => 'I NOTNULL',
'answeredbyid' => 'I NOTNULL',
'ratingup' => 'I NOTNULL',
'ratingdown' => 'I NOTNULL');
$pntable = array();
// Full table definition
$pntable['faqanswer'] = DBUtil::getLimitedTablename('faqanswer');
$pntable['faqanswer_column'] = array ('faqid' => 'pn_id',
'question' => 'pn_question',
'urltitle' => 'pn_urltitle',
'answer' => 'pn_answer',
'submittedbyid' => 'pn_submittedbyid',
'answeredbyid' => 'pn_answeredbyid',
'ratingup' => 'pn_ratingup', //added this version
'ratingdown' => 'pn_ratingdown'); //added this version
$pntable['faqanswer_column_def'] = array('faqid' => 'I NOTNULL AUTO PRIMARY',
'question' => 'X DEFAULT NULL',
'urltitle' => "X NOTNULL DEFAULT ''",
'answer' => 'X',
'submittedbyid' => 'I NOTNULL',
'answeredbyid' => 'I NOTNULL',
'ratingup' => 'I NOTNULL',
'ratingdown' => 'I NOTNULL');
so everything i need it to do works fine if its a fresh install, however if im doing an upgrade, no dice the module freaks out about not knowing what ratingup and rating down is. in my upgrade section if the pninit i've been trying to work it by using a SQL command ALTER TABLE. however im pretty sure thats a depreciated way of doing it, i assume theres a DBUtil function that takes care of what i need to do, can anyone point me in the right direction. thanks!!!!
