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`),