From 6a2b135ac9e0cba8c050e1a9be83528a85fa4869 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Thu, 10 Mar 2016 16:44:28 -0500 Subject: [PATCH] Add 1.0.6 SQL updates --- Server Files/SQL/1.0.6_Updates.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Server Files/SQL/1.0.6_Updates.sql diff --git a/Server Files/SQL/1.0.6_Updates.sql b/Server Files/SQL/1.0.6_Updates.sql new file mode 100644 index 000000000..b26cbae72 --- /dev/null +++ b/Server Files/SQL/1.0.6_Updates.sql @@ -0,0 +1,7 @@ +-- ---------------------------- +-- Run to replace legacy bloodbag with universal type if using DZE_UseBloodTypes = true; +-- ---------------------------- +UPDATE `Traders_DATA` SET `item` = '["bloodBagONEG",1]' WHERE `item` = '["ItemBloodbag",1]'; +UPDATE character_data SET Backpack = REPLACE(Backpack, 'ItemBloodbag', 'bloodBagONEG') WHERE INSTR(Backpack, 'ItemBloodbag') > 0; +UPDATE character_data SET Inventory = REPLACE(Inventory, 'ItemBloodbag', 'bloodBagONEG') WHERE INSTR(Inventory, 'ItemBloodbag') > 0; +UPDATE object_data SET Inventory = REPLACE(Inventory, 'ItemBloodbag', 'bloodBagONEG') WHERE INSTR(Inventory, 'ItemBloodbag') > 0; \ No newline at end of file