aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-09-17 21:49:52 +0200
committerGitHub <noreply@github.com>2020-09-17 21:49:52 +0200
commit6215da0d640bd86a7c2bc144859c1542f09fc1a6 (patch)
treea2100843e1442efd46a32594320ad121393ce810 /sql/updates
parentd2f51569d12f3cb72e53351914d2535eb6ef2dbe (diff)
Script/Commands: Add ".pdump copy" command (#25455)
* Script/Commands: Add ".pdump copy" command Syntax: .pdump copy $playerNameOrGUID $account [$newname] [$newguid] Copy character with name/guid $playerNameOrGUID into character list of $account with $newname, with first free or $newguid guid. * Add missing return * Restore eof check * Fix sql * Use forward declaration header Co-authored-by: Shauren <shauren.trinity@gmail.com> * Remove buffer when reading a line * Rename sql files Co-authored-by: Shauren <shauren.trinity@gmail.com>
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/auth/3.3.5/2020_09_17_00_auth.sql3
-rw-r--r--sql/updates/world/3.3.5/2020_09_17_00_world.sql5
2 files changed, 8 insertions, 0 deletions
diff --git a/sql/updates/auth/3.3.5/2020_09_17_00_auth.sql b/sql/updates/auth/3.3.5/2020_09_17_00_auth.sql
new file mode 100644
index 00000000000..9cc01ed837e
--- /dev/null
+++ b/sql/updates/auth/3.3.5/2020_09_17_00_auth.sql
@@ -0,0 +1,3 @@
+--
+DELETE FROM `rbac_permissions` WHERE `id`= 880;
+INSERT INTO `rbac_permissions` (`id`,`name`) VALUES (880, 'Command: pdump copy');
diff --git a/sql/updates/world/3.3.5/2020_09_17_00_world.sql b/sql/updates/world/3.3.5/2020_09_17_00_world.sql
new file mode 100644
index 00000000000..96180f587f1
--- /dev/null
+++ b/sql/updates/world/3.3.5/2020_09_17_00_world.sql
@@ -0,0 +1,5 @@
+--
+DELETE FROM `command` WHERE `name`='pdump copy';
+INSERT INTO `command` (`name`,`permission`,`help`) VALUES
+('pdump copy',880,'Syntax: .pdump copy $playerNameOrGUID $account [$newname] [$newguid]
+Copy character with name/guid $playerNameOrGUID into character list of $account with $newname, with first free or $newguid guid.');