server/sql/updates/12447_02_characters_calendar_invites.sql
2020-02-17 09:19:44 +00:00

13 lines
No EOL
665 B
SQL

ALTER TABLE character_db_version CHANGE COLUMN required_12447_01_characters_calendar_events required_12447_02_characters_calendar_invites bit;
DROP TABLE IF EXISTS `calendar_invites`;
CREATE TABLE `calendar_invites` (
`inviteId` bigint(10) unsigned NOT NULL DEFAULT '0',
`eventId` bigint(10) unsigned NOT NULL DEFAULT '0',
`inviteeGuid` int(10) unsigned NOT NULL DEFAULT '0',
`senderGuid` int(3) unsigned NOT NULL DEFAULT '0',
`status` tinyint(10) unsigned NOT NULL DEFAULT '0',
`lastUpdateTime` int(10) unsigned NOT NULL DEFAULT '0',
`rank` tinyint(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`inviteId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;