ExecuteS( 'SHOW COLUMNS FROM '._DB_PREFIX_.'lgcomments_storecomments '. 'LIKE "status_comment"' )) { $rename1 = Db::getInstance()->Execute( 'ALTER TABLE '._DB_PREFIX_.'lgcomments_storecomments '. 'CHANGE status_comment active int(1) NOT NULL' ); } else { $rename1 = true; } if (Db::getInstance()->ExecuteS( 'SHOW COLUMNS FROM '._DB_PREFIX_.'lgcomments_productcomments '. 'LIKE "status_comment"' )) { $rename2 = Db::getInstance()->Execute( 'ALTER TABLE '._DB_PREFIX_.'lgcomments_productcomments '. 'CHANGE status_comment active int(1) NOT NULL' ); } else { $rename2 = true; } return $rename1 && $rename2; }