server/sql/updates/0.8/4275_game_event.sql

21 lines
1.2 KiB
SQL

CREATE TABLE `game_event_gameobject` (
`guid` int(10) unsigned NOT NULL,
`event` mediumint(9) NOT NULL DEFAULT '0' COMMENT 'Put negatives values to remove during event',
PRIMARY KEY (`guid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `game_event_creature` (
`guid` int(10) unsigned NOT NULL,
`event` mediumint(9) NOT NULL DEFAULT '0' COMMENT 'Put negatives values to remove during event',
PRIMARY KEY (`guid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
CREATE TABLE `game_event` (
`entry` mediumint(8) unsigned NOT NULL COMMENT 'Entry of the game event',
`start` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Absolute start date, the event will never start before',
`end` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'Absolute end date, the event will never start afler',
`occurence` bigint(20) unsigned NOT NULL DEFAULT '86400' COMMENT 'Delay in hours between occurences of the event',
`length` bigint(20) unsigned NOT NULL DEFAULT '43200' COMMENT 'Length in hours of the event',
`description` varchar(255) DEFAULT NULL COMMENT 'Description of the event displayed in console',
PRIMARY KEY (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;