diff options
| author | Shauren <shauren.trinity@gmail.com> | 2018-07-22 13:22:35 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-10-04 00:19:38 +0200 |
| commit | 17665c929c3a9fb7fe75dd680648129bc1c1f874 (patch) | |
| tree | a489cb742b7c5f3d7850d26157b3ac480aa00633 /sql/updates | |
| parent | ad2df01b2c25ca6264096b8b8324dc8136ebd48b (diff) | |
Core/Instances: Instance lock rewrite (WIP)
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/characters/master/2022_10_03_00_characters.sql | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sql/updates/characters/master/2022_10_03_00_characters.sql b/sql/updates/characters/master/2022_10_03_00_characters.sql new file mode 100644 index 00000000000..ab8c334882c --- /dev/null +++ b/sql/updates/characters/master/2022_10_03_00_characters.sql @@ -0,0 +1,30 @@ +-- +-- Table structure for table `character_instance_lock` +-- +DROP TABLE IF EXISTS `character_instance_lock`; +CREATE TABLE `character_instance_lock` ( + `guid` bigint unsigned NOT NULL, + `mapId` int unsigned NOT NULL, + `lockId` int unsigned NOT NULL, + `instanceId` int unsigned DEFAULT NULL, + `difficulty` tinyint unsigned DEFAULT NULL, + `data` text COLLATE utf8mb4_unicode_ci, + `completedEncountersMask` int unsigned DEFAULT NULL, + `entranceWorldSafeLocId` int unsigned DEFAULT NULL, + `expiryTime` bigint unsigned DEFAULT NULL, + `extended` tinyint unsigned DEFAULT NULL, + PRIMARY KEY (`guid`,`mapId`,`lockId`), + UNIQUE KEY `uk_character_instanceId` (`guid`,`instanceId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +-- +-- Table structure for table `instance` +-- +DROP TABLE IF EXISTS `instance`; +CREATE TABLE `instance` ( + `instanceId` int unsigned NOT NULL, + `data` text COLLATE utf8mb4_unicode_ci, + `completedEncountersMask` int unsigned DEFAULT NULL, + `entranceWorldSafeLocId` int unsigned DEFAULT NULL, + PRIMARY KEY (`instanceId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; |
