-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathadkatsupdates.json
119 lines (119 loc) · 5.74 KB
/
adkatsupdates.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"SQLUpdates": [
{
"update_id": "command57adminfix",
"version_minimum": "6.0.0.0",
"version_maximum": null,
"message_name": "Fix command 57 admin-only status",
"message_success": "Command 57 admin-only status fixed",
"message_failure": "Failed to fix command 57 admin-only status",
"update_checks_hasResults": true,
"update_checks": [
"SELECT command_id FROM %DATABASENAME%.adkats_commands WHERE command_id = 57",
"SELECT command_id FROM %DATABASENAME%.adkats_commands WHERE command_id = 57 AND command_playerInteraction = 1"
],
"update_execute_requiresModRows": true,
"update_execute": [
"UPDATE %DATABASENAME%.adkats_commands SET command_playerInteraction = 0 WHERE command_id = 57"
],
"update_success": [],
"update_failure": []
},
{
"update_id": "increaseSettingMaxSize",
"version_minimum": "6.0.0.0",
"version_maximum": null,
"message_name": "Increasing max size of setting values",
"message_success": "Setting value max size increased to 3000 characters",
"message_failure": "Failed to increase setting value max size",
"update_checks_hasResults": true,
"update_checks": [
"SHOW FIELDS FROM %DATABASENAME%.`adkats_settings` WHERE `Field` = 'setting_value' AND `TYPE` = 'varchar(1500)'"
],
"update_execute_requiresModRows": false,
"update_execute": [
"ALTER TABLE %DATABASENAME%.`adkats_settings` MODIFY `setting_value` VARCHAR(3000);"
],
"update_success": [],
"update_failure": []
},
{
"update_id": "increaseSPGroupMaxSize",
"version_minimum": "6.0.0.0",
"version_maximum": null,
"message_name": "Increasing special player group size",
"message_success": "Increased special player group size",
"message_failure": "Failed to increase special player group size",
"update_checks_hasResults": true,
"update_checks": [
"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = '%DATABASENAME%' AND `TABLE_NAME` = 'adkats_specialplayers' AND `COLUMN_NAME` = 'player_group' AND `CHARACTER_MAXIMUM_LENGTH` <= 99"
],
"update_execute_requiresModRows": false,
"update_execute": [
"ALTER TABLE %DATABASENAME%.`adkats_specialplayers` CHANGE COLUMN `player_group` `player_group` VARCHAR(100) CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci' NOT NULL"
],
"update_success": [],
"update_failure": []
},
{
"update_id": "addCommandAccessMethod",
"version_minimum": "6.0.3.0",
"version_maximum": null,
"message_name": "Adding command access method",
"message_success": "Added command access method",
"message_failure": "Failed to add command access method",
"update_checks_hasResults": false,
"update_checks": [
"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = '%DATABASENAME%' AND `TABLE_NAME`='adkats_commands' AND `COLUMN_NAME` = 'command_access'"
],
"update_execute_requiresModRows": false,
"update_execute": [
"ALTER TABLE `%DATABASENAME%`.`adkats_commands` ADD COLUMN `command_access` ENUM('Any', 'AnyHidden', 'AnyVisible', 'GlobalVisible', 'TeamVisible', 'SquadVisible') NOT NULL DEFAULT 'Any' AFTER `command_playerInteraction`;"
],
"update_success": [],
"update_failure": []
},
{
"update_id": "checkPlayerdataCreatedUpdateColumnsIndexes",
"version_minimum": "6.0.0.0",
"version_maximum": null,
"message_name": "Added created and updated columns to playerdata table",
"message_success": "Added created and updated columns to playerdata table",
"message_failure": "Failed add created and updated columns to playerdata table",
"update_checks_hasResults": false,
"update_checks": [
"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = '%DATABASENAME%' AND `TABLE_NAME` = 'tbl_playerdata' AND `COLUMN_NAME` = 'created_at'",
"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = '%DATABASENAME%' AND `TABLE_NAME` = 'tbl_playerdata' AND `COLUMN_NAME` = 'updated_at'",
"SHOW INDEX FROM `%DATABASENAME%`.`tbl_playerdata` WHERE Key_name = 'created_at'",
"SHOW INDEX FROM `%DATABASENAME%`.`tbl_playerdata` WHERE Key_name = 'updated_at'"
],
"update_execute_requiresModRows": false,
"update_execute": [
"ALTER TABLE %DATABASENAME%.`tbl_playerdata` ADD `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `CountryCode`",
"ALTER TABLE %DATABASENAME%.`tbl_playerdata` ADD `updated_at` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `created_at`",
"ALTER TABLE %DATABASENAME%.`tbl_playerdata` ADD INDEX `created_at` (`created_at`)",
"ALTER TABLE %DATABASENAME%.`tbl_playerdata` ADD INDEX `updated_at` (`updated_at`)"
],
"update_success": [],
"update_failure": []
},
{
"update_id": "addExtendedRoundStatsMap",
"version_minimum": "8.0.0.0",
"version_maximum": null,
"message_name": "Adding column map to round stats",
"message_success": "Added column map to round stats",
"message_failure": "Failed to add column map to round stats",
"update_checks_hasResults": false,
"update_checks": [
"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = '%DATABASENAME%' AND `TABLE_NAME`='tbl_extendedroundstats' AND `COLUMN_NAME` = 'map'"
],
"update_execute_requiresModRows": false,
"update_execute": [
"ALTER TABLE `%DATABASENAME%`.`tbl_extendedroundstats` ADD `map` VARCHAR(25) CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' NULL DEFAULT NULL AFTER `roundstat_time`;"
],
"update_success": [],
"update_failure": []
}
]
}