mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 09:28:06 +00:00
Merge branch 'main' into guild_temp
This commit is contained in:
1
migrations/cdserver/5_serratorizer_chargeup_fix.sql
Normal file
1
migrations/cdserver/5_serratorizer_chargeup_fix.sql
Normal file
@@ -0,0 +1 @@
|
||||
UPDATE behaviorParameter SET value = 20 WHERE behaviorID = 21001 AND parameterID = "value 2";
|
2
migrations/cdserver/6_ninja_sensei.sql
Normal file
2
migrations/cdserver/6_ninja_sensei.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
INSERT INTO ScriptComponent (id, script_name, client_script_name) VALUES (228, 'scripts\ai\FV\L_ACT_NINJA_SENSEI.lua', null);
|
||||
UPDATE ComponentsRegistry SET component_id = 228 WHERE id = 2489 AND component_type = 5;
|
8
migrations/dlu/10_Security_updates.sql
Normal file
8
migrations/dlu/10_Security_updates.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE IF NOT EXISTS player_cheat_detections (
|
||||
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
account_id INT REFERENCES accounts(id),
|
||||
name TEXT REFERENCES charinfo(name),
|
||||
violation_msg TEXT NOT NULL,
|
||||
violation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
|
||||
violation_system_address TEXT NOT NULL
|
||||
);
|
9
migrations/dlu/11_fix_cheat_detection_table.sql
Normal file
9
migrations/dlu/11_fix_cheat_detection_table.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
DROP TABLE IF EXISTS `player_cheat_detections`;
|
||||
CREATE TABLE IF NOT EXISTS player_cheat_detections (
|
||||
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
account_id INT REFERENCES accounts(id),
|
||||
name TEXT NOT NULL,
|
||||
violation_msg TEXT NOT NULL,
|
||||
violation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
|
||||
violation_system_address TEXT NOT NULL
|
||||
);
|
5
migrations/dlu/12_modular_build_ugc.sql
Normal file
5
migrations/dlu/12_modular_build_ugc.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE IF NOT EXISTS ugc_modular_build (
|
||||
ugc_id BIGINT NOT NULL PRIMARY KEY,
|
||||
character_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,
|
||||
ldf_config VARCHAR(60) NOT NULL
|
||||
);
|
1
migrations/dlu/8_foreign_play_key.sql
Normal file
1
migrations/dlu/8_foreign_play_key.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE accounts MODIFY play_key_id INT DEFAULT NULL;
|
18
migrations/dlu/9_Update_Leaderboard_Storage.sql
Normal file
18
migrations/dlu/9_Update_Leaderboard_Storage.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
ALTER TABLE leaderboard
|
||||
ADD COLUMN tertiaryScore FLOAT NOT NULL DEFAULT 0,
|
||||
ADD COLUMN numWins INT NOT NULL DEFAULT 0,
|
||||
ADD COLUMN timesPlayed INT NOT NULL DEFAULT 1,
|
||||
MODIFY time INT NOT NULL DEFAULT 0;
|
||||
|
||||
/* Can only ALTER one column at a time... */
|
||||
ALTER TABLE leaderboard CHANGE score primaryScore FLOAT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE leaderboard CHANGE time secondaryScore FLOAT NOT NULL DEFAULT 0 AFTER primaryScore;
|
||||
|
||||
/* A bit messy, but better than going through a bunch of code fixes all to be run once. */
|
||||
UPDATE leaderboard SET
|
||||
primaryScore = secondaryScore,
|
||||
secondaryScore = 0 WHERE game_id IN (1, 44, 46, 47, 48, 49, 53, 103, 104, 108, 1901);
|
||||
|
||||
/* Do this last so we dont update entry times erroneously */
|
||||
ALTER TABLE leaderboard
|
||||
CHANGE last_played last_played TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP() ON UPDATE CURRENT_TIMESTAMP();
|
Reference in New Issue
Block a user