[DIVA] Add stage result index to prevent multiple result being sent by client, fix #3

This commit is contained in:
samnyan
2020-01-23 15:31:32 +08:00
parent b70ec89902
commit ce780b2edb
7 changed files with 77 additions and 36 deletions

View File

@@ -0,0 +1,4 @@
TRUNCATE TABLE `diva_game_session`;
ALTER TABLE `diva_game_session`
ADD `stage_result_index` int(11) DEFAULT NULL;

View File

@@ -0,0 +1,23 @@
DROP TABLE diva_game_session;
CREATE TABLE diva_game_session
(
id INTEGER,
accept_id INTEGER NOT NULL,
last_pv_id INTEGER,
last_update_time DATETIME,
level_exp INTEGER,
level_number INTEGER,
old_level_exp INTEGER,
old_level_number INTEGER,
stage_index INTEGER,
stage_result_index INTEGER,
start_mode VARCHAR(255),
start_time DATETIME,
vp INTEGER,
pd_id BIGINT UNIQUE
REFERENCES diva_player_profile (id) ON DELETE CASCADE,
PRIMARY KEY (
id
)
);