/****** 开始升级 ******/
alter table qth8_mess add comment int default 0 /**/ update qth8_mess set comment=0
/****** v4.4升级完成！******/
alter table qth8_webconfig add qth8s1 int default 0,qth8s2 int default 0,qth8s3 int default 0,qth8s4 int default 0,qth8s5 int default 0,qth8s6 int default 0,qth8s7 int default 0,qth8s8 int default 0,qth8s9 int default 0,qth8s10 int default 0 /**/ update qth8_webconfig set qth8s1=48,qth8s2=10,qth8s3=0,qth8s4=30,qth8s5=0,qth8s6=1024,qth8s7=0,qth8s8=0,qth8s9=0,qth8s10=0
/****** v5.0升级完成！******/
alter table qth8_webconfig add qth8Link1 text /**/ update qth8_webconfig set qth8Link1=''
alter table qth8_review add power int default 0 /**/ update qth8_review set power=0
alter table qth8_bizreview add power int default 0 /**/ update qth8_bizreview set power=0
/****** v6.0升级完成！******/
alter table qth8_webconfig add qth8ad9 text /**/ update qth8_webconfig set qth8ad9='' /**/ alter table qth8_mess drop column searchText /**/ alter table qth8_mess add searchText nvarchar(400)  /**/ update qth8_mess set searchText=left(title+Convert(nvarchar(2000),content),400) /**/ create index i_search on qth8_mess(searchText)
/****** v6.1升级完成！******/
alter table qth8_webconfig add qth8s11 int default 0,qth8s12 int default 0,qth8s13 int default 0,qth8s14 int default 0,qth8DynamicForm text,qth8TelNumber text,qth8Word text /**/ update qth8_webconfig set qth8s9=0,qth8s10=0,qth8s11=0,qth8s12=0,qth8s13=0,qth8s14=0,qth8DynamicForm='qth8',qth8TelNumber='',qth8Word=''
alter table qth8_commodity add messsort int default 1 /**/ update qth8_commodity set messsort=1
alter table qth8_user_list add qth8_sort_3 ntext default '最新活动,招聘信息',qth8_web_index ntext default '首页|/index.aspx,产品信息|/products.aspx,商家动态|/news.aspx,给我留言|/feedback.aspx,联系我们|/contact.aspx,关于我们|/about.aspx,' /**/ update qth8_user_list set qth8_sort_3='最新活动,招聘信息',qth8_web_index='首页|/index.aspx,产品信息|/products.aspx,商家动态|/news.aspx,给我留言|/feedback.aspx,联系我们|/contact.aspx,关于我们|/about.aspx,'
alter table qth8_user_list alter column qth8_video nvarchar(255) 
create table dbo.qth8_biztemp(id int IDENTITY (1,1) PRIMARY KEY,qth8_mid int default 0,qth8_user_name nvarchar(20),qth8_sort int default 0,qth8_sort_1 nvarchar(10),qth8_address nvarchar(10),qth8_vip int default 0,power int default 1,qth8_name nvarchar(50),qth8_pic nvarchar(50),qth8_kill int default 0,qth8_reviewcount int default 0,qth8_url nvarchar(50),qth8_about ntext,qth8_address_1 nvarchar(100)) /**/ insert into qth8_biztemp(qth8_mid,qth8_user_name,qth8_sort,qth8_sort_1,qth8_address,qth8_vip,power,qth8_name,qth8_pic,qth8_kill,qth8_reviewcount,qth8_url,qth8_about,qth8_address_1) select id,qth8_user_name,qth8_sort,qth8_sort_1,qth8_address,qth8_vip,power,qth8_name,qth8_pic,qth8_kill,qth8_reviewcount,qth8_url,qth8_about,qth8_address_1 from qth8_user_list
/****** v7.0升级完成！******/
alter table qth8_webconfig add qth8s15 int default 1,qth8Vali text /**/ update qth8_webconfig set qth8s15=1,qth8Vali='中国有多少个民族？请回答数字。:56\r\n本站站长帅吗？请回答帅。:帅'
/****** v7.2升级完成！******/
alter table qth8_sort add sortdisplayad int default 0,sortdisplayad1 int default 0,sortad text,sortad1 text,sortTitle nvarchar(200),sortKeywords nvarchar(200),sortDescription nvarchar(200),sortPath nvarchar(100),sortTemplate nvarchar(100) /**/ update qth8_sort set sortdisplayad=0,sortdisplayad1=0,sortTitle='',sortKeywords='',sortDescription='',sortPath='',sortTemplate=''
alter table qth8_webconfig add qth8Template nvarchar(100) /**/ update qth8_webconfig set qth8Template=''
alter table qth8_webconfig add qth8PostPath nvarchar(50)  /**/ update qth8_webconfig set qth8PostPath='Post'
alter table qth8_webconfig add qth8Nav text               /**/ update qth8_webconfig set qth8Nav='网站首页|/||,全部信息|/xinxi/||,商家大全|/biz/|dhStrong|,'
alter table qth8_webconfig add qth8Weather nvarchar(50)   /**/ update qth8_webconfig set qth8Weather='101010100'
alter table qth8_webconfig add qth8TDomain nvarchar(50)   /**/ update qth8_webconfig set qth8TDomain=''
alter table qth8_webconfig add qth8ValiCode text          /**/ update qth8_webconfig set qth8ValiCode='1234567890'
alter table qth8_mess add mid int /**/ update qth8_mess set mid=id
create table dbo.qth8_phone(id int IDENTITY (1,1) PRIMARY KEY,qth8Phone nvarchar(15),qth8Count int default 0)
/****** v8.0升级完成！******/
alter table qth8_mess drop constraint DF_qth8_mess_teladdress
alter table qth8_mess drop column teladdress
alter table qth8_mess add sort2 int default 0,sortName2 nvarchar(50), address2 int default 0, addressName nvarchar(50),addressName1 nvarchar(50),addressName2 nvarchar(50),uid int default 0 /**/ update qth8_webconfig set qth8Template='default'
alter table qth8_mess alter column pic nvarchar(500)
alter table qth8_user_list add uid int default 0
alter table qth8_biztemp add qth8_phone nvarchar(15),qth8_tel nvarchar(11),qth8_qq nvarchar(11),uid int
/****** v8.1升级完成！******/
alter table qth8_webconfig add kfToken nvarchar(32),kfContactUs text,kfAdvertising text,kfLinks text,kfJoinUs text
alter table qth8_webconfig add kfPicCount int default 8,kfWatermark int default 0,kfWatermarkText nvarchar(100),kfWatermarkPic nvarchar(100) /**/ update qth8_webconfig set kfPicCount=8,kfWatermark=0
create table dbo.kf_weixin(id int IDENTITY (1,1) PRIMARY KEY,kfOrder int default 0,kfMsgType int default 0,kfWord nvarchar(50),kfTitle nvarchar(100),kfContent ntext,kfPicUrl nvarchar(200),kfUrl nvarchar(200))
alter table qth8_mess add pic1 text
/****** v8.2升级完成！******/
create table dbo.kf_nav(id int IDENTITY (1,1) PRIMARY KEY,kfOrder int default 0,kfType int default 0,kfTitle nvarchar(100),kfLink nvarchar(500),kfCss nvarchar(200),kfStyle nvarchar(1000),kfTarget nvarchar(200))
alter table qth8_webconfig add qth8Nav1 text  /**/ update qth8_webconfig set qth8Nav1=''
alter table qth8_mess add Temp1 text,Temp2 text,Temp3 text,Temp4 text,Temp5 text
create table dbo.kf_news(id int IDENTITY (1,1) PRIMARY KEY,kfTitle nvarchar(100),kfTag nvarchar(1000),kfContent text,kfSort int,kfSort1 int,kfSortName nvarchar(50),kfSortName1 nvarchar(50),kfTu int default 0,kfDate datetime default getdate())
create table dbo.kf_news_sort(id int IDENTITY (1,1) PRIMARY KEY,kfTitle nvarchar(100),kfOrder int default 0)
alter table kf_weixin add uid int default 0,kfLinkType int default 0,kfHtml text  /**/ update kf_weixin set uid=0,kfLinkType=0
alter table qth8_admin add kfPower int default 0,kfAc text,kfLoginIp nvarchar(50),kfLoginDate datetime  /**/ update qth8_admin set kfPower=0 /**/ update qth8_webconfig set kfJoinUs='<iframe height="1580" src="http://www.kfenlei.com/joinUs.aspx" frameborder="0" width="630" scrolling="no"></iframe>'
create table dbo.kf_user(id int IDENTITY (1,1) PRIMARY KEY,kfUserName nvarchar(50),kfPassWord nvarchar(50),kfName nvarchar(100),kfTel nvarchar(100),kfPhone nvarchar(100),kfQQ nvarchar(100),kfWx nvarchar(100),kfEmail nvarchar(100),kfPic nvarchar(100),kfJifen int default 0,kfYuan float default 0 ,kfAbout text,kfRegIp nvarchar(100),kfLoginIp nvarchar(100),kfRegDate datetime,kfLoginDate datetime,kfCompanyCk int default 0,kfWxCk int default 0,kfLevel int default 0,kfLevel1 int default 0,kfGetPass nvarchar(100),kfValiEmail int default 0,kfValiTel int default 0,kfQQAccessToken nvarchar(500),kfQQOpenId nvarchar(500),kfWxToken nvarchar(500))/**/update qth8_user_list set uid=id/**/SET IDENTITY_INSERT [dbo].[kf_user] ON/**/insert into kf_user(id,kfUserName,kfPassWord,kfName) select id,qth8_user_name,qth8_pass_word,qth8_name from qth8_user_list order by id/**/SET IDENTITY_INSERT [dbo].[kf_user] OFF/**/update kf_user set kfCompanyCk=1/**/alter table qth8_user_list drop constraint DF_qth8_user_list_qth8_date /**/ alter table qth8_user_list drop column qth8_pass_word,qth8_reg_ip,qth8_login_ip,qth8_date,qth8_over_date
alter table qth8_webconfig add qth8S16 int /**/ update qth8_webconfig set qth8S16=1
DROP table qth8_biztemp
/****** v8.3升级完成！******/
alter table qth8_webconfig add kfTxAPPID nvarchar(100),kfTxAPPKEY nvarchar(100)
alter table kf_news add kfReview int default(0) /**/ update kf_news set kfReview=0
alter table qth8_webconfig add qth8S17 int default(0) /**/ update qth8_webconfig set qth8S17=0
create table dbo.kf_news_review(id int IDENTITY (1,1) PRIMARY KEY,mid int,kfIp nvarchar(30),kfDate datetime default getDate(),kfPower int default(0),kfContent ntext)
create table dbo.kf_biz_member(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfNum int default(0),kfOpenId nvarchar(100),kfJifen int default(0),kfName nvarchar(100),kfTel nvarchar(100),kfText ntext,kfDate datetime default getDate())
create table dbo.kf_biz_member_jl(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfMemberId int default(0),kfJl nvarchar(100),kfDate datetime default getDate())
alter table qth8_user_list add kfTitle nvarchar(500),kfKeywords nvarchar(500),kfDescription nvarchar(500),kfStat ntext
alter table qth8_webconfig add qth8Ad10 text,qth8Ad11 text, qth8Ad12 text
create table dbo.kf_ad(id int IDENTITY (1,1) PRIMARY KEY,kfAd int,kfName nvarchar(100),kfContent ntext,kfClass int,kfSort int default(0),kflink nvarchar(200),kfWidth int,kfHeight int,kfMT int,kfMR int,kfMB int,kfML int,kfStartDate datetime,kfEndDate datetime,kfDisplay int default(0),kfHtml ntext,kfAbout ntext,kfOrder int default(0))
alter table qth8_mess add topState1 int default(0) /**/ update qth8_mess set topState1=1
alter table qth8_user_list add qth8_page_style1 int default(0) /**/ update qth8_user_list set qth8_page_style1=0
alter table qth8_user_list add qth8_top_pic1 ntext /**/ update qth8_user_list set qth8_top_pic1=''
create table dbo.kf_Email(id int IDENTITY (1,1) PRIMARY KEY,kfMailServer nvarchar(100),kfMailAddress nvarchar(100),kfUserName nvarchar(100),kfPassWord nvarchar(100),kfPort nvarchar(5))
alter table qth8_webconfig add kfWxAppID nvarchar(500), kfWxAppSecret nvarchar(500),kfWxAccessToken ntext,kfWxAccessTokenDate datetime
alter table kf_user add kfWxAppID nvarchar(500), kfWxAppSecret nvarchar(500),kfWxAccessToken ntext,kfWxAccessTokenDate datetime
create table dbo.kf_weixin_menu(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfTid int default(0),kfOrder int default(0),kfName nvarchar(50),kfType nvarchar(50),kfKey nvarchar(200),kfUrl nvarchar(200))
alter table qth8_webconfig add qth8S18 int default(0),qth8S19 int default(0) /**/ update qth8_webconfig set qth8S18=0,qth8S19=0
create table dbo.kf_Lottery(id int IDENTITY (1,1) PRIMARY KEY,kfUid int,kfNum int,kfCount int,kfAc int default(0),kfState int default(0),kfStartDate datetime,kfEndDate datetime,kfShowDate datetime,kfTitle nvarchar(100),kfPic nvarchar(50),kfText nvarchar(500),kfHtml ntext)
create table dbo.kf_Lottery_ac(id int IDENTITY (1,1) PRIMARY KEY,kfLid int,kfUid int default(0),kfOpenId nvarchar(100),kfName nvarchar(100),kfNum nvarchar(100),kfAc int default(0),kfDate datetime default getDate())
/****** v9.0升级完成！******/
alter table qth8_webconfig add qth8S20 int default(0) /**/ update qth8_webconfig set qth8S20=0
alter table kf_user add kfInfoCount int default(0),kfToday datetime
alter table qth8_mess add kfView int default(0)
alter table kf_news add kfView int default(0)
alter table qth8_webconfig add kfWxName nvarchar(50),kfWxPic nvarchar(50)
alter table qth8_mess add kfTopNum int default(0) /**/ update qth8_mess set kfTopNum=0 /**/update qth8_commodity set messsort=0 where sort2=1
alter table qth8_mess add kfComments text
create table dbo.kf_attachment(id int IDENTITY (1,1) PRIMARY KEY,kfCk int default(0),kfType int default(0),kfUid int default(0),kfMid int default(0),kfPath nvarchar(100),kfDate datetime default getdate())
alter table kf_attachment add kfIp nvarchar(30)
alter table kf_attachment add kfUpdate datetime default getdate()
alter table qth8_keysword add kfTag int default(0),kfTagType int default(0),kfTagLink nvarchar(100)
alter table qth8_webconfig add qth8Ad13 text,qth8Ad14 text
/****** v9.2升级完成！******/
alter table qth8_webconfig add qth8s21 int default(0),qth8s22 int default(0) /**/update qth8_webconfig set qth8s21=0,qth8s22=0
alter table qth8_webconfig add qth8s23 int default(0),qth8s24 int default(0) /**/update qth8_webconfig set qth8s23=0,qth8s24=0
alter table qth8_webconfig add qth8s25 int default(6) /**/update qth8_webconfig set qth8s25=6 /**/alter table kf_ad alter column kfLink nvarchar(1000) /**/ alter table kf_nav alter column kfLink nvarchar(1000) /**/ alter table kf_weixin alter column kfurl nvarchar(1000) /**/ alter table kf_weixin_menu alter column kfurl nvarchar(1000) /**/  alter table qth8_keysword alter column kfTagLink nvarchar(1000) /**/  alter table qth8_mess alter column url nvarchar(1000) /**/  alter table qth8_user_list alter column qth8_url nvarchar(1000)
alter table qth8_mess add kfIsPhone int default(0)
alter table kf_biz_member add kfXingbie int default(0),kfShengri datetime,kfTouxiang nvarchar(1000) /**/ update kf_biz_member set kfXingbie=0
create table dbo.kf_weiyouhui_sort(id int IDENTITY (1,1) PRIMARY KEY,kfName nvarchar(50),kfTopId int default(0),kfOrder int default(0)) /**/SET IDENTITY_INSERT kf_weiyouhui_sort ON /**/ insert into kf_weiyouhui_sort(id,kfName,kfTopId,kfOrder) select id,sortname,sortid,sortorder from qth8_bizsort /**/SET IDENTITY_INSERT kf_weiyouhui_sort OFF
create table dbo.kf_weiyouhui_info(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfTitle nvarchar(50),kfSort nvarchar(50),kfPrice float default(0),kfPrice1 float default(0),kfPic nvarchar(100),kfPicList ntext,kfContent ntext,kfPostDate datetime default getdate(),kfNum int default(0),kfIp nvarchar(20),kfSort1 int default(0),kfSearchText nvarchar(500),kfInfoSort int)
create table dbo.kf_weiyouhui_info_sort(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfSid int default(0),kfName nvarchar(50),kfSort int,kfOrder int default(0))
create table dbo.kf_weiyouhui(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfNum int default(0),kfShow int default(0),kfName nvarchar(100),kfTel nvarchar(100),kfPhone nvarchar(100),kfQq nvarchar(100),kfWeixin nvarchar(100),kfWxPic nvarchar(100),kfPic nvarchar(100),kfOpeningHours nvarchar(100),kfAddress nvarchar(500),kfSale nvarchar(500),kfAbout nvarchar(500),kfCity int default(0),kfCity1 int default(0),kfCityName nvarchar(100),kfCityName1 nvarchar(100),kfSort int default(0),kfSort1 int default(0),kfSortName nvarchar(100),kfSortName1 nvarchar(100),kfReviewCount int default(0),kfTodayStat int default(0),kfStat int default(0),kfToday datetime,kfStyle nvarchar(100),kfWxCk int default(0),kfWxToken nvarchar(500),kfWxAppId nvarchar(500),kfWxAppSecret nvarchar(500),kfWxAccessToken ntext,kfWxAccessTokenDate datetime,kfStartDate datetime,kfOverDate datetime) /**/ alter table kf_user add kfWeiYouHuiCk int default(0) /**/ update kf_user set kfWeiYouHuiCk=0 /**/ insert into kf_weiyouhui(kfUid,kfWxToken,kfWxAppId,kfWxAppSecret,kfWxAccessToken,kfWxAccessTokenDate,kfName,kfTel,kfPhone,kfQq,kfOpeningHours,kfAbout,kfCity,kfCity1,kfSort,kfSort1,kfPic,kfAddress) SELECT kf_user.id,kf_user.kfWxToken,kf_user.kfWxAppId,kf_user.kfWxAppsecret,kf_user.kfWxAccessToken,kf_user.kfWxAccessTokenDate,qth8_user_list.qth8_name,qth8_user_list.qth8_tel,qth8_user_list.qth8_phone,qth8_user_list.qth8_qq,qth8_user_list.qth8_businesshours,SUBSTRING(qth8_about,0,500) as qth8_about,qth8_user_list.qth8_address,qth8_user_list.qth8_city,qth8_user_list.qth8_sort,qth8_user_list.qth8_sort_1,qth8_user_list.qth8_pic,qth8_user_list.qth8_address_1 FROM qth8_user_list LEFT JOIN kf_user ON kf_user.ID=qth8_user_list.uID where kf_user.kfCompanyCk=2 /**/ update kf_user set kfWeiYouHuiCk=1 where id in (select kfUid from kf_weiyouhui)
create table dbo.kf_wap_nav(id int IDENTITY (1,1) PRIMARY KEY,kfOrder int default(0),kfTitle nvarchar(100),kfLink nvarchar(1000),kfCss nvarchar(200),kfHead nvarchar(50),kfTarget nvarchar(200)) /**/ insert kf_wap_nav(kfOrder,kfTitle,kfLink,kfCss,kfHead) values(4,'分类信息','/wap/xinxi/','32b0c6','分') /**/ insert kf_wap_nav(kfOrder,kfTitle,kfLink,kfCss,kfHead) values(3,'本地商家','/wap/biz/','c0d656','商') /**/ insert kf_wap_nav(kfOrder,kfTitle,kfLink,kfCss,kfHead) values(2,'新闻资讯','/wap/news/','852ca8','新') /**/ insert kf_wap_nav(kfOrder,kfTitle,kfLink,kfCss,kfHead) values(1,'幸运抽奖','/wap/choujiang/','c73232','奖')
alter table kf_ad add kfWidthUnit int default(0),kfHeightUnit int default(0)
alter table qth8_webconfig add qth8Ad15 text
alter table kf_user add kfWxOpenId nvarchar(500) /**/ alter table kf_user alter column kfPic nvarchar(1000)

/****** v9.3升级完成！******/

create table dbo.kf_ip_config(id int IDENTITY (1,1) PRIMARY KEY,kfUser int default(0),kfPost int default(0),kfReview int default(0),kfAddress ntext)/**/ insert into kf_ip_config(kfUser,kfPost,kfReview,kfAddress) values(0,0,0,'')
create table dbo.kf_ip_list(id int IDENTITY (1,1) PRIMARY KEY,kfStartIpText nvarchar(500),kfEndIpText nvarchar(500),kfStartIpNum float default(0),kfEndIpNum float default(0),kfClass int default(0))


/****** v9.31升级完成！******/

alter table qth8_webconfig add qth8S26 int default(0) /**/ update qth8_webconfig set qth8S26=0
alter table kf_news add kfShow int /**/ update kf_news set kfShow=1
alter table qth8_user_list add kfTemplate nvarchar(1000) default('0'),kfTemplateWap nvarchar(1000) default('0') /**/ update qth8_user_list set kfTemplate=qth8_page_style,kfTemplateWap=qth8_page_style1 /**/ alter table qth8_user_list drop column kfPageStyle /**/ alter table qth8_user_list drop column kfPageStyle1 /**/ alter table qth8_user_list drop column qth8_page_style /**/ alter table qth8_user_list drop column qth8_page_style1
create table dbo.kf_biz_info_sort(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfSid int default(0),kfName nvarchar(50),kfSort int,kfOrder int default(0)) /**/ alter table qth8_user_list drop column qth8_sort_2 /**/ alter table qth8_user_list drop column qth8_sort_3
alter table qth8_webconfig add kfTel int default(0) /**/ update qth8_webconfig set kfTel=0
alter table qth8_webconfig add kfShowTel int default(0) /**/ update qth8_webconfig set kfShowTel=0
alter table qth8_sort add  sortTel int default(0) /**/ update qth8_sort set sortTel=0
alter table qth8_user_list add  kfBeian ntext
create table dbo.kf_biz_nav(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfType int default(0),kfOrder int default(0),kfTitle nvarchar(100),kfLink nvarchar(1000),kfLink1 nvarchar(1000),kfTarget nvarchar(200))
alter table qth8_user_list add  kfS1 int default(0) /**/ update qth8_user_list set kfS1=0

/****** v9.4升级完成！******/
alter table qth8_webconfig add  kfWxLoginClass int default(0) /**/ update qth8_webconfig set kfWxLoginClass=0
alter table kf_user add  kfValiTelValue nvarchar(11)
create table dbo.kf_sms_config(id int IDENTITY (1,1) PRIMARY KEY,kfUserName nvarchar(100),kfPassWord nvarchar(100),kfName nvarchar(100)) /**/ insert into kf_sms_config(kfUserName,kfPassWord,kfName) values('','','')
create table dbo.kf_sms_list(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfTel nvarchar(100),kfValiDate nvarchar(100),kfClass int default(0),kfStatus int default(0),kfDate datetime default getdate(),kfComments ntext)
alter table qth8_webconfig add qth8s27 int default(0),qth8sv20 int default(0),qth8sv21 int default(0),qth8sv22 int default(0) /**/ update qth8_webconfig set qth8s27=0,qth8sv20=0,qth8sv21=0,qth8sv22=0
alter table qth8_webconfig add qth8Ad16 text, qth8Ad17 text, qth8Ad18 text, qth8Ad19 text, qth8Ad20 text, qth8Ad21 text, qth8Ad22 text
alter table qth8_sort add sortad2 text
alter table qth8_mess add userclass int default(0)
alter table qth8_mess add kfHot int default(0),kfHotDate datetime
alter table kf_user add kfLevelDate datetime
create table dbo.kf_pay_config(id int IDENTITY (1,1) PRIMARY KEY,kfAlipayPartner nvarchar(200),kfAlipayKey nvarchar(200),kfWeixinAppId nvarchar(200),kfWeixinAppSecret nvarchar(200),kfWeixinMchId nvarchar(200),kfWeixinKey nvarchar(200)) /**/ insert into kf_pay_config(kfAlipayPartner,kfAlipayKey,kfWeixinAppId,kfWeixinMchId,kfWeixinKey) values('','','','','')
create table dbo.kf_pay_price(id int IDENTITY (1,1) PRIMARY KEY,kfClass int,kfCount int,kfUnit int,kfPrice float)
create table dbo.kf_pay_list(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfMid int default(0),kfTradeNo nvarchar(100),kfComId int,kfDate datetime default getdate(),kfSuccessDate datetime,kfStatus int default(0),kfPrice float,kfComments ntext,kfClass int,kfTradeNo1 nvarchar(100))
alter table qth8_webconfig add qth8S28 int /**/ update qth8_webconfig set qth8S28=1
alter table qth8_webconfig add kfWxTicket ntext,kfWxTicketDate datetime
alter table kf_pay_config add kfWeixinAccessToken ntext,kfWeixinAccessTokenDate datetime,kfWeixinTicket ntext,kfWeixinTicketDate datetime
alter table qth8_webconfig add kfWxSharePic nvarchar(50)
/****** v9.5升级完成！******/
/****** v9.6升级完成！******/
alter table kf_wap_nav add kfPic nvarchar(500)
alter table qth8_webconfig add kfWapTitle text,kfWapKeyWords text,kfWapDescription text /**/ update qth8_webconfig set kfWapTitle=qth8title,kfWapKeyWords=qth8KeyWords,kfWapDescription=qth8Description
alter table kf_pay_config add kfClass int default(0),kfAgentUid nvarchar(200),kfAgentKey nvarchar(200) /**/ update kf_pay_config set kfClass=0
alter table kf_pay_config add kfMiniAppId nvarchar(200),kfMiniAppSecret nvarchar(200)
/****** v9.7升级完成！******/

alter table qth8_webconfig add qth8Weixin nvarchar(100)
alter table qth8_webconfig add kfWxMiniName nvarchar(100)
alter table kf_pay_list add kfClass1 int default(0)
alter table qth8_mess add weixin nvarchar(100),weixin_pic nvarchar(100)
alter table qth8_webconfig add qth8s29 int default(0) /**/ update qth8_webconfig set qth8s29=0
alter table qth8_webconfig add qth8s30 int default(0) /**/ update qth8_webconfig set qth8s30=20
create table dbo.kf_favorite(id int IDENTITY (1,1) PRIMARY KEY,kfUid int default(0),kfMid int default(0),kfTitle nvarchar(50))
/****** v10.1升级完成！******/