  
 ALTER TABLE TblGuildInfo
	ADD tChangeState SMALLDATETIME
	
GO

UPDATE TblGuildInfo
SET tnNationType = 101
WHERE tnNationType = 0

GO

UPDATE TblGuildInfo
SET tnNationType = 105
WHERE tnNationType = 1

GO

-- ADD Equip column
ALTER  PROCEDURE dbo.GetCharInfo
@UID AS INT								
AS

SET NOCOUNT ON

SELECT UID, Name, Sex, Hair, Face, Nationality, Class, Fame, Mileage, Guild, Party, Level, Gold, IP, STR, DEX, CON, Intell, WIS, HP, MP, 
Exp , Chance,Equip
FROM CharInfo WHERE UID = @UID

GO

-- add nCampID
ALTER TABLE TblGuildMember
	ADD nCampID INT default(0)

GO

update TblGuildMember
	set nCampID = 0
