decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
36
decomp/schema/RustyHearts/procs/up_update_fortune.sql
Normal file
36
decomp/schema/RustyHearts/procs/up_update_fortune.sql
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
CREATE PROCEDURE [dbo].[up_update_fortune]
|
||||
@character_id [uniqueidentifier],
|
||||
@fortune int,
|
||||
@type_1 int,
|
||||
@type_2 int,
|
||||
@type_3 int,
|
||||
@count int
|
||||
|
||||
as
|
||||
begin
|
||||
--FortuneTable 추가&수정.
|
||||
set nocount on
|
||||
if not EXISTS (select character_id from FortuneTable with (READUNCOMMITTED) where character_id = @character_id)
|
||||
begin
|
||||
insert into FortuneTable values( @character_id,
|
||||
@type_1,
|
||||
@type_2,
|
||||
@type_3,
|
||||
@count );
|
||||
end
|
||||
else
|
||||
begin
|
||||
update FortuneTable set
|
||||
type_1 = @type_1,
|
||||
type_2 = @type_2,
|
||||
type_3 = @type_3,
|
||||
count = @count
|
||||
where character_id = @character_id
|
||||
end
|
||||
--CharacterTable FortuneCount 수정.
|
||||
set nocount on
|
||||
update CharacterTable
|
||||
set Fortune = @fortune
|
||||
where character_id = @character_id
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue