Jump to content
  • 0

Latest SQL UPDATED: 10/14/2013


vbawol

Question

4 answers to this question

Recommended Posts

  • 0

 

 

CREATE TABLE IF NOT EXISTS `Object_DATA` (

`ObjectID` int(11) unsigned NOT NULL AUTO_INCREMENT,

`ObjectUID` bigint(24) NOT NULL DEFAULT '0',

`Instance` int(11) unsigned NOT NULL,

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

`Worldspace` varchar(128) NOT NULL DEFAULT '[]',

`Inventory` longtext,

`Hitpoints` varchar(512) NOT NULL DEFAULT '[]',

`Fuel` double(13,5) NOT NULL DEFAULT '1.00000',

`Damage` double(13,5) NOT NULL DEFAULT '0.00000',

PRIMARY KEY (`ObjectID`),

KEY `ObjectUID` (`ObjectUID`) USING BTREE,

KEY `Instance` (`Instance`) USING BTREE

) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

 

For some reason this doesnt add `LastUpdated` entry when i run a query, am i doing something wrong?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...