From ef1d323ef000acf4c4dd20000b887ff948d07ee5 Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 16 May 2016 13:32:22 -0400 Subject: [PATCH] Should Fix Issue #1569 Varchar(512) was truncating certain vehicle hitpoints and preventing vehicle loading. The HiveExt dll handles hitpoints as a string which has a char limit far greater than 512, so simply updating the column should fix the issue. Also update the ChracterID column for #1371 - new Hive dll will be required --- Server Files/SQL/1.0.6_Updates.sql | 6 ++++++ Server Files/SQL/epoch.sql | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Server Files/SQL/1.0.6_Updates.sql b/Server Files/SQL/1.0.6_Updates.sql index 377c019ff..75a3b5106 100644 --- a/Server Files/SQL/1.0.6_Updates.sql +++ b/Server Files/SQL/1.0.6_Updates.sql @@ -1,3 +1,9 @@ +-- ---------------------------- +-- Update Object_DATA to support longer CharacterID and hitpoints +-- ---------------------------- +ALTER TABLE Object_DATA MODIFY COLUMN CharacterID bigint(20); +ALTER TABLE Object_DATA MODIFY COLUMN Hitpoints varchar(1024); + -- ---------------------------- -- Add new attachments category to DB traders -- ---------------------------- diff --git a/Server Files/SQL/epoch.sql b/Server Files/SQL/epoch.sql index 25998a14e..c57b698ee 100644 --- a/Server Files/SQL/epoch.sql +++ b/Server Files/SQL/epoch.sql @@ -51,10 +51,10 @@ CREATE TABLE IF NOT EXISTS `Object_DATA` ( `Classname` varchar(50) DEFAULT NULL, `Datestamp` datetime NOT NULL, `LastUpdated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - `CharacterID` int(11) unsigned NOT NULL DEFAULT '0', + `CharacterID` bigint(20) unsigned NOT NULL DEFAULT '0', `Worldspace` varchar(128) NOT NULL DEFAULT '[]', `Inventory` longtext, - `Hitpoints` varchar(512) NOT NULL DEFAULT '[]', + `Hitpoints` varchar(1024) NOT NULL DEFAULT '[]', `Fuel` double(13,5) NOT NULL DEFAULT '1.00000', `Damage` double(13,5) NOT NULL DEFAULT '0.00000', PRIMARY KEY (`ObjectID`),