diff options
| author | ForesterDev <11771800+ForesterDev@users.noreply.github.com> | 2020-06-20 23:49:18 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-20 21:49:18 +0200 |
| commit | 8e0365d8a6ca5628ad17e6684743d9ab2138c068 (patch) | |
| tree | 86b5e26d9d2a09c9049601dc4a5ea7c2c542f26a /sql/updates | |
| parent | 4199a31432ee71c8ca53038a9df5462c1faacca6 (diff) | |
DB/Account: update account_access table (#24788)
* DB/Account: update account_access table:
- rename fields id -> AccountID, gmlevel -> SecurityLevel
- add Comment field
- rename command .acc set gmlevel to .acc set seclevel
* Update auth database
* Fix primary key
* Temporary restore old command account set gmlevel with same handler as account set seclevel
Use Optional for realmID - if not set, use -1 (for all realms)
* Rename 2020_XX_XX_00_auth.sql to 2020_06_20_00_auth.sql
* Update auth_database.sql
* Rename 2020_XX_XX_00_world.sql to 2020_06_20_06_world.sql
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/auth/3.3.5/2020_06_20_00_auth.sql | 6 | ||||
| -rw-r--r-- | sql/updates/world/3.3.5/2020_06_20_06_world.sql | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/sql/updates/auth/3.3.5/2020_06_20_00_auth.sql b/sql/updates/auth/3.3.5/2020_06_20_00_auth.sql new file mode 100644 index 00000000000..fdb95bfe335 --- /dev/null +++ b/sql/updates/auth/3.3.5/2020_06_20_00_auth.sql @@ -0,0 +1,6 @@ +ALTER TABLE `account_access` + CHANGE COLUMN `id` `AccountID` INT(10) UNSIGNED NOT NULL, + CHANGE COLUMN `gmlevel` `SecurityLevel` TINYINT(3) UNSIGNED NOT NULL, + ADD COLUMN `Comment` VARCHAR(255) DEFAULT NULL AFTER `RealmID`; + +UPDATE `rbac_permissions` SET `name` = 'Command: account set seclevel' WHERE `id` = 228; diff --git a/sql/updates/world/3.3.5/2020_06_20_06_world.sql b/sql/updates/world/3.3.5/2020_06_20_06_world.sql new file mode 100644 index 00000000000..f0b8a157160 --- /dev/null +++ b/sql/updates/world/3.3.5/2020_06_20_06_world.sql @@ -0,0 +1,19 @@ +DELETE FROM `command` WHERE `name` IN ('account set gmlevel','account set seclevel'); +INSERT INTO `command` (`name`,`permission`,`help`) VALUES +('account set gmlevel', 228, 'Syntax: .account set gmlevel [$accountName] #level [#realmID] + +Set the security level for targeted player (can\'t be used at self) or for account $accountName to a level of #level on the realm #realmID. + +#level may range from 0 to 3. + +#realmID - Default: -1 for all realms. + +Note: this command will be removed soon. Use \'account set seclevel\' instead.'), + +('account set seclevel', 228, 'Syntax: .account set seclevel [$accountName] #level [#realmID] + +Set the security level for targeted player (can\'t be used at self) or for account $accountName to a level of #level on the realm #realmID. + +#level may range from 0 to 3. + +#realmID - Default: -1 for all realms.'); |
