mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
DB-Schema/Characters: Store game_event_save.next_start as unix timestamp and remove runtime typecasts for this field.
--HG-- branch : trunk
This commit is contained in:
@@ -1213,7 +1213,7 @@ DROP TABLE IF EXISTS `game_event_save`;
|
||||
CREATE TABLE `game_event_save` (
|
||||
`event_id` mediumint(8) unsigned NOT NULL,
|
||||
`state` tinyint(3) unsigned NOT NULL default '1',
|
||||
`next_start` timestamp NOT NULL default '0000-00-00 00:00:00',
|
||||
`next_start` BIGINT(11) UNSIGNED NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`event_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
4
sql/updates/9758_characters_game_event_save.sql
Normal file
4
sql/updates/9758_characters_game_event_save.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE `game_event_save` ADD `next_start_timestamp` BIGINT(11) UNSIGNED NOT NULL DEFAULT '0';
|
||||
UPDATE `game_event_save` SET `next_start_timestamp` = UNIX_TIMESTAMP(`next_start`);
|
||||
ALTER TABLE `game_event_save` DROP `next_start`;
|
||||
ALTER TABLE `game_event_save` CHANGE `next_start_timestamp` `next_start` BIGINT(11) UNSIGNED NOT NULL DEFAULT '0';
|
||||
Reference in New Issue
Block a user