From fea8638775518af395b287bc27f5a0f4f45ef446 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Thu, 6 Jun 2019 01:50:15 -0400 Subject: [PATCH] Changed id datatype for items to bigint. Removed bazaar and retainer inventories (now all in the characters_inventory table). Added server_items_dealing table for bazaar. --- sql/characters_inventory.sql | 42 ++++++++++---------- sql/characters_inventory_bazaar.sql | 28 -------------- sql/characters_inventory_equipment.sql | 43 +++++++++++---------- sql/retainers_inventory.sql | 23 ----------- sql/server_items.sql | 48 +++++++++++------------ sql/server_items_dealing.sql | 29 ++++++++++++++ sql/server_items_modifiers.sql | 53 +++++++++++++------------- 7 files changed, 123 insertions(+), 143 deletions(-) delete mode 100644 sql/characters_inventory_bazaar.sql delete mode 100644 sql/retainers_inventory.sql create mode 100644 sql/server_items_dealing.sql diff --git a/sql/characters_inventory.sql b/sql/characters_inventory.sql index c7fcb453..a619441f 100644 --- a/sql/characters_inventory.sql +++ b/sql/characters_inventory.sql @@ -1,23 +1,25 @@ -/* -MySQL Data Transfer -Source Host: localhost -Source Database: ffxiv_server -Target Host: localhost -Target Database: ffxiv_server -Date: 12/17/2017 3:37:39 PM -*/ +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 5.6.17 - MySQL Community Server (GPL) +-- Server OS: Win64 +-- HeidiSQL Version: 10.1.0.5464 +-- -------------------------------------------------------- -SET FOREIGN_KEY_CHECKS=0; --- ---------------------------- --- Table structure for characters_inventory --- ---------------------------- -CREATE TABLE `characters_inventory` ( - `characterId` int(10) unsigned NOT NULL, - `serverItemId` int(10) unsigned NOT NULL, - `itemPackage` smallint(5) unsigned NOT NULL DEFAULT '0', - PRIMARY KEY (`characterId`,`serverItemId`,`itemPackage`) +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; + +-- Dumping structure for table ffxiv_server.characters_inventory +CREATE TABLE IF NOT EXISTS `characters_inventory` ( + `characterId` int(10) unsigned NOT NULL, + `serverItemId` bigint(20) unsigned NOT NULL, + `itemPackage` smallint(5) unsigned NOT NULL, + `slot` smallint(5) unsigned NOT NULL, + PRIMARY KEY (`characterId`,`serverItemId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- ---------------------------- --- Records --- ---------------------------- +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/sql/characters_inventory_bazaar.sql b/sql/characters_inventory_bazaar.sql deleted file mode 100644 index 0082b120..00000000 --- a/sql/characters_inventory_bazaar.sql +++ /dev/null @@ -1,28 +0,0 @@ -/* -MySQL Data Transfer -Source Host: localhost -Source Database: ffxiv_server -Target Host: localhost -Target Database: ffxiv_server -Date: 12/17/2017 3:37:44 PM -*/ - -SET FOREIGN_KEY_CHECKS=0; --- ---------------------------- --- Table structure for characters_inventory_bazaar --- ---------------------------- -CREATE TABLE `characters_inventory_bazaar` ( - `id` int(10) unsigned zerofill NOT NULL AUTO_INCREMENT, - `characterId` int(10) unsigned NOT NULL DEFAULT '0', - `rewardId` bigint(10) unsigned DEFAULT NULL, - `seekId` bigint(10) unsigned DEFAULT '0', - `rewardAmount` int(11) DEFAULT '0', - `seekAmount` int(11) DEFAULT '0', - `bazaarMode` tinyint(4) unsigned NOT NULL DEFAULT '0', - `sellPrice` int(11) DEFAULT '0', - PRIMARY KEY (`id`,`characterId`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; - --- ---------------------------- --- Records --- ---------------------------- diff --git a/sql/characters_inventory_equipment.sql b/sql/characters_inventory_equipment.sql index 1101b439..7e313219 100644 --- a/sql/characters_inventory_equipment.sql +++ b/sql/characters_inventory_equipment.sql @@ -1,24 +1,25 @@ -/* -MySQL Data Transfer -Source Host: localhost -Source Database: ffxiv_server -Target Host: localhost -Target Database: ffxiv_server -Date: 12/17/2017 3:37:50 PM -*/ +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 5.6.17 - MySQL Community Server (GPL) +-- Server OS: Win64 +-- HeidiSQL Version: 10.1.0.5464 +-- -------------------------------------------------------- -SET FOREIGN_KEY_CHECKS=0; --- ---------------------------- --- Table structure for characters_inventory_equipment --- ---------------------------- -CREATE TABLE `characters_inventory_equipment` ( - `characterId` int(10) unsigned NOT NULL, - `classId` smallint(5) unsigned NOT NULL, - `equipSlot` smallint(5) unsigned NOT NULL, - `itemId` bigint(10) unsigned NOT NULL, - PRIMARY KEY (`characterId`,`classId`,`equipSlot`) +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; + +-- Dumping structure for table ffxiv_server.characters_inventory_equipment +CREATE TABLE IF NOT EXISTS `characters_inventory_equipment` ( + `characterId` int(10) unsigned NOT NULL, + `classId` smallint(5) unsigned NOT NULL, + `equipSlot` smallint(5) unsigned NOT NULL, + `itemId` bigint(10) unsigned NOT NULL, + PRIMARY KEY (`characterId`,`classId`,`equipSlot`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- ---------------------------- --- Records --- ---------------------------- +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/sql/retainers_inventory.sql b/sql/retainers_inventory.sql deleted file mode 100644 index 15f62160..00000000 --- a/sql/retainers_inventory.sql +++ /dev/null @@ -1,23 +0,0 @@ -/* -MySQL Data Transfer -Source Host: localhost -Source Database: ffxiv_server -Target Host: localhost -Target Database: ffxiv_server -Date: 12/17/2017 3:38:25 PM -*/ - -SET FOREIGN_KEY_CHECKS=0; --- ---------------------------- --- Table structure for retainers_inventory --- ---------------------------- -CREATE TABLE `retainers_inventory` ( - `retainerId` int(10) unsigned NOT NULL, - `serverItemId` int(10) unsigned NOT NULL, - `itemPackage` mediumint(8) unsigned NOT NULL, - PRIMARY KEY (`retainerId`,`serverItemId`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; - --- ---------------------------- --- Records --- ---------------------------- diff --git a/sql/server_items.sql b/sql/server_items.sql index 095b491e..f729b946 100644 --- a/sql/server_items.sql +++ b/sql/server_items.sql @@ -1,27 +1,25 @@ -/* -MySQL Data Transfer -Source Host: localhost -Source Database: ffxiv_server -Target Host: localhost -Target Database: ffxiv_server -Date: 12/17/2017 3:38:35 PM -*/ +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 5.6.17 - MySQL Community Server (GPL) +-- Server OS: Win64 +-- HeidiSQL Version: 10.1.0.5464 +-- -------------------------------------------------------- -SET FOREIGN_KEY_CHECKS=0; --- ---------------------------- --- Table structure for server_items --- ---------------------------- -CREATE TABLE `server_items` ( - `id` bigint(20) unsigned zerofill NOT NULL AUTO_INCREMENT, - `itemId` int(10) unsigned NOT NULL, - `quantity` int(10) unsigned DEFAULT '1', - `quality` tinyint(3) unsigned DEFAULT '1', - `isExclusive` tinyint(1) unsigned DEFAULT '0', - `isAttached` tinyint(1) unsigned DEFAULT '0', - `isDealing` tinyint(1) unsigned DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; --- ---------------------------- --- Records --- ---------------------------- +-- Dumping structure for table ffxiv_server.server_items +CREATE TABLE IF NOT EXISTS `server_items` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `itemId` int(10) unsigned NOT NULL, + `quantity` int(10) unsigned NOT NULL DEFAULT '0', + `quality` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8; + +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/sql/server_items_dealing.sql b/sql/server_items_dealing.sql new file mode 100644 index 00000000..2e3e18f2 --- /dev/null +++ b/sql/server_items_dealing.sql @@ -0,0 +1,29 @@ +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 5.6.17 - MySQL Community Server (GPL) +-- Server OS: Win64 +-- HeidiSQL Version: 10.1.0.5464 +-- -------------------------------------------------------- + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; + +-- Dumping structure for table ffxiv_server.server_items_dealing +CREATE TABLE IF NOT EXISTS `server_items_dealing` ( + `id` bigint(20) unsigned NOT NULL, + `dealingValue` tinyint(3) unsigned NOT NULL DEFAULT '0', + `dealingMode` tinyint(3) unsigned NOT NULL DEFAULT '0', + `dealingAttached1` int(11) DEFAULT '0', + `dealingAttached2` int(11) NOT NULL DEFAULT '0', + `dealingAttached3` int(11) NOT NULL DEFAULT '0', + `dealingTag` tinyint(3) unsigned NOT NULL DEFAULT '0', + `bazaarMode` tinyint(3) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; diff --git a/sql/server_items_modifiers.sql b/sql/server_items_modifiers.sql index 49f3b29f..44886bd6 100644 --- a/sql/server_items_modifiers.sql +++ b/sql/server_items_modifiers.sql @@ -1,26 +1,27 @@ -/* -MySQL Data Transfer -Source Host: localhost -Source Database: ffxiv_server -Target Host: localhost -Target Database: ffxiv_server -Date: 12/17/2017 3:38:44 PM -*/ +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 5.6.17 - MySQL Community Server (GPL) +-- Server OS: Win64 +-- HeidiSQL Version: 10.1.0.5464 +-- -------------------------------------------------------- -SET FOREIGN_KEY_CHECKS=0; --- ---------------------------- --- Table structure for server_items_modifiers --- ---------------------------- -CREATE TABLE `server_items_modifiers` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `durability` int(10) unsigned NOT NULL DEFAULT '0', - `mainQuality` tinyint(3) unsigned NOT NULL DEFAULT '1', - `subQuality1` tinyint(3) unsigned NOT NULL DEFAULT '1', - `subQuality2` tinyint(3) unsigned NOT NULL DEFAULT '1', - `subQuality3` tinyint(3) unsigned NOT NULL DEFAULT '1', - `param1` int(10) unsigned NOT NULL DEFAULT '0', - `param2` int(10) unsigned NOT NULL DEFAULT '0', - `param3` int(10) unsigned NOT NULL DEFAULT '0', +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET NAMES utf8 */; +/*!50503 SET NAMES utf8mb4 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; + +-- Dumping structure for table ffxiv_server.server_items_modifiers +CREATE TABLE IF NOT EXISTS `server_items_modifiers` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `durability` mediumint(8) unsigned NOT NULL DEFAULT '0', + `mainQuality` tinyint(3) unsigned NOT NULL DEFAULT '0', + `subQuality1` tinyint(3) unsigned NOT NULL DEFAULT '0', + `subQuality2` tinyint(3) unsigned NOT NULL DEFAULT '0', + `subQuality3` tinyint(3) unsigned NOT NULL DEFAULT '0', + `param1` mediumint(8) unsigned NOT NULL DEFAULT '0', + `param2` mediumint(8) unsigned NOT NULL DEFAULT '0', + `param3` mediumint(8) unsigned NOT NULL DEFAULT '0', `spiritbind` smallint(5) unsigned NOT NULL DEFAULT '0', `materia1` smallint(5) unsigned NOT NULL DEFAULT '0', `materia2` smallint(5) unsigned NOT NULL DEFAULT '0', @@ -28,8 +29,8 @@ CREATE TABLE `server_items_modifiers` ( `materia4` smallint(5) unsigned NOT NULL DEFAULT '0', `materia5` smallint(5) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2315 DEFAULT CHARSET=latin1; +) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=latin1; --- ---------------------------- --- Records --- ---------------------------- +/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; +/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;