ExecuteS('SHOW COLUMNS FROM '._DB_PREFIX_.'lgcomments_productcomments LIKE "title"')) { $add1 = Db::getInstance()->Execute( 'ALTER TABLE '._DB_PREFIX_.'lgcomments_productcomments '. 'ADD title text NOT NULL' ); } else { $add1 = true; } if (!Db::getInstance()->ExecuteS('SHOW COLUMNS FROM '._DB_PREFIX_.'lgcomments_productcomments LIKE "answer"')) { $add2 = Db::getInstance()->Execute( 'ALTER TABLE '._DB_PREFIX_.'lgcomments_productcomments '. 'ADD answer text' ); } else { $add2 = true; } if (!Db::getInstance()->ExecuteS('SHOW COLUMNS FROM '._DB_PREFIX_.'lgcomments_storecomments LIKE "title"')) { $add3 = Db::getInstance()->Execute( 'ALTER TABLE '._DB_PREFIX_.'lgcomments_storecomments '. 'ADD title text NOT NULL' ); } else { $add3 = true; } if (!Db::getInstance()->ExecuteS('SHOW COLUMNS FROM '._DB_PREFIX_.'lgcomments_storecomments LIKE "answer"')) { $add4 = Db::getInstance()->Execute( 'ALTER TABLE '._DB_PREFIX_.'lgcomments_storecomments '. 'ADD answer text' ); } else { $add4 = true; } return $add1 && $add2 && $add3 && $add4; }