From 8b694badab3c885f669b4c2b9873d59588e72121 Mon Sep 17 00:00:00 2001 From: Biscuit Boy Date: Wed, 30 Aug 2017 22:59:08 +1000 Subject: [PATCH 1/4] Added Positions for Limsa Aethernet --- sql/zonepositions.sql | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sql/zonepositions.sql b/sql/zonepositions.sql index ccf387b8..d77e9044 100644 --- a/sql/zonepositions.sql +++ b/sql/zonepositions.sql @@ -23,7 +23,7 @@ CREATE TABLE IF NOT EXISTS `zonepositions` ( PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci; --- Dumping data for table sapphire.zonepositions: 144 rows +-- Dumping data for table sapphire.zonepositions: 157 rows DELETE FROM `zonepositions`; /*!40000 ALTER TABLE `zonepositions` DISABLE KEYS */; INSERT INTO `zonepositions` (`id`, `target_zone_id`, `pos_x`, `pos_y`, `pos_z`, `pos_o`, `radius`) VALUES @@ -183,7 +183,16 @@ INSERT INTO `zonepositions` (`id`, `target_zone_id`, `pos_x`, `pos_y`, `pos_z`, (6390350, 130, -26.465, 83, -17.332, -0.148, 2), (4169491, 140, 467.013, 96.62, 159.009, -1.692, 2), (4169494, 141, -115.018, 18.377, 333.546, 2.882, 2), - (4169496, 141, 18.549, 18.377, 565.206, 1.345, 2); + (4169496, 141, 18.549, 18.377, 565.206, 1.345, 2), + (4170478, 128, 15.792, 40, 71.464, 3.027, 2), + (4170467, 128, -55.892, 42, -129.285, -2.857, 2), + (4170361, 129, -335.144, 11.999, 53.509, -0.002, 2), + (4170387, 129, -180.396, 4, 180.309, 0.386, 2), + (4203091, 128, -3.309, 44, -218.191, -1.517, 2), + (4203092, 129, -213.582, 16, 48.801, -0.006, 2), + (6390356, 128, -11.685, 91.499, -13.191, -0.377, 2), + (4170499, 134, -39.562, 36.039, 152.972, 2.041, 2), + (4170784, 135, -39.271, 71.504, 116.516, 1.587, 2); /*!40000 ALTER TABLE `zonepositions` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; From 4d014649886a0f1a01f48724df1705948c8acd1b Mon Sep 17 00:00:00 2001 From: Biscuit Boy Date: Wed, 30 Aug 2017 23:35:25 +1000 Subject: [PATCH 2/4] Made it so update.sql no longer runs Commented out all of update.sql's code Just it case it needs to be ran for some reason again --- sql/update.sql | 47 +++++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 22 deletions(-) diff --git a/sql/update.sql b/sql/update.sql index e4909448..03b7679d 100644 --- a/sql/update.sql +++ b/sql/update.sql @@ -1,22 +1,25 @@ -ALTER TABLE `charaiteminventory` ADD `container_25` INT(20) NOT NULL AFTER `container_24`, - ADD `container_26` INT(20) NOT NULL AFTER `container_25`, - ADD `container_27` INT(20) NOT NULL AFTER `container_26`, - ADD `container_28` INT(20) NOT NULL AFTER `container_27`, - ADD `container_29` INT(20) NOT NULL AFTER `container_28`, - ADD `container_30` INT(20) NOT NULL AFTER `container_29`, - ADD `container_31` INT(20) NOT NULL AFTER `container_30`, - ADD `container_32` INT(20) NOT NULL AFTER `container_31`, - ADD `container_33` INT(20) NOT NULL AFTER `container_32`, - ADD `container_34` INT(20) NOT NULL AFTER `container_33`; - -ALTER TABLE `characlass` ADD `Lv_24` INT(5) NOT NULL DEFAULT '0' AFTER `Exp_23`, - ADD `Exp_24` INT(10) NOT NULL DEFAULT '0' AFTER `Lv_24`, - ADD `Lv_25` INT(5) NOT NULL DEFAULT '0' AFTER `Exp_24`, - ADD `Exp_25` INT(19) NOT NULL DEFAULT '0' AFTER `Lv_25`; - -ALTER TABLE `charadetail` CHANGE `Aetheryte` `Aetheryte` BINARY(16) NULL DEFAULT NULL, - CHANGE `HowTo` `HowTo` BINARY(33) NULL DEFAULT NULL, - CHANGE `Minions` `Minions` BINARY(33) NULL DEFAULT NULL, - CHANGE `Mounts` `Mounts` BINARY(13) NULL DEFAULT NULL; - -ALTER TABLE `charadetail` CHANGE `OpeningSequence` `OpeningSequence` INT(3) NULL DEFAULT '0'; \ No newline at end of file +-- ------------------------------------------- +-- ALTER TABLE `charaiteminventory` ADD `container_25` INT(20) NOT NULL AFTER `container_24`, +-- ADD `container_26` INT(20) NOT NULL AFTER `container_25`, +-- ADD `container_27` INT(20) NOT NULL AFTER `container_26`, +-- ADD `container_28` INT(20) NOT NULL AFTER `container_27`, +-- ADD `container_29` INT(20) NOT NULL AFTER `container_28`, +-- ADD `container_30` INT(20) NOT NULL AFTER `container_29`, +-- ADD `container_31` INT(20) NOT NULL AFTER `container_30`, +-- ADD `container_32` INT(20) NOT NULL AFTER `container_31`, +-- ADD `container_33` INT(20) NOT NULL AFTER `container_32`, +-- ADD `container_34` INT(20) NOT NULL AFTER `container_33`; +-- +-- ALTER TABLE `characlass` ADD `Lv_24` INT(5) NOT NULL DEFAULT '0' AFTER `Exp_23`, +-- ADD `Exp_24` INT(10) NOT NULL DEFAULT '0' AFTER `Lv_24`, +-- ADD `Lv_25` INT(5) NOT NULL DEFAULT '0' AFTER `Exp_24`, +-- ADD `Exp_25` INT(19) NOT NULL DEFAULT '0' AFTER `Lv_25`; +-- +-- ALTER TABLE `charadetail` CHANGE `Aetheryte` `Aetheryte` BINARY(16) NULL DEFAULT NULL, +-- CHANGE `HowTo` `HowTo` BINARY(33) NULL DEFAULT NULL, +-- CHANGE `Minions` `Minions` BINARY(33) NULL DEFAULT NULL, +-- CHANGE `Mounts` `Mounts` BINARY(13) NULL DEFAULT NULL; +-- +-- ALTER TABLE `charadetail` CHANGE `OpeningSequence` `OpeningSequence` INT(3) NULL DEFAULT '0'; +-- ------------------------------------------- +-- update.sql Before Merge into Other SQL's 30/08/2017 \ No newline at end of file From 6328eb5304e6eb826fa80a3da90d003efcee4cad Mon Sep 17 00:00:00 2001 From: Biscuit Boy Date: Wed, 30 Aug 2017 23:44:22 +1000 Subject: [PATCH 3/4] Update.sql Merged into other SQL's Merged the Update.sql into the other SQL's --- sql/characlass.sql | 182 +++++++++++++++------------------ sql/charadetail.sql | 203 ++++++++++++++++--------------------- sql/charaiteminventory.sql | 150 +++++++++++++-------------- 3 files changed, 238 insertions(+), 297 deletions(-) diff --git a/sql/characlass.sql b/sql/characlass.sql index 7c092871..807d6a6a 100644 --- a/sql/characlass.sql +++ b/sql/characlass.sql @@ -1,100 +1,82 @@ --- MySQL dump 10.13 Distrib 5.7.13, for Win64 (x86_64) --- --- Host: localhost Database: sapphire --- ------------------------------------------------------ --- Server version 5.7.13-log - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!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' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - --- --- Table structure for table `characlass` --- - -DROP TABLE IF EXISTS `characlass`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `characlass` ( - `Lv_0` int(5) DEFAULT '0', - `Exp_0` int(10) DEFAULT '0', - `Lv_1` int(5) DEFAULT '0', - `Exp_1` int(10) DEFAULT '0', - `Lv_2` int(5) DEFAULT '0', - `Exp_2` int(10) DEFAULT '0', - `Lv_3` int(5) DEFAULT '0', - `Exp_3` int(10) DEFAULT '0', - `Lv_4` int(5) DEFAULT '0', - `Exp_4` int(10) DEFAULT '0', - `Lv_5` int(5) DEFAULT '0', - `Exp_5` int(10) DEFAULT '0', - `Lv_6` int(5) DEFAULT '0', - `Exp_6` int(10) DEFAULT '0', - `Lv_7` int(5) DEFAULT '0', - `Exp_7` int(10) DEFAULT '0', - `Lv_8` int(5) DEFAULT '0', - `Exp_8` int(10) DEFAULT '0', - `Lv_9` int(5) DEFAULT '0', - `Exp_9` int(10) DEFAULT '0', - `Lv_10` int(5) DEFAULT '0', - `Exp_10` int(10) DEFAULT '0', - `Lv_11` int(5) DEFAULT '0', - `Exp_11` int(10) DEFAULT '0', - `Lv_12` int(5) DEFAULT '0', - `Exp_12` int(10) DEFAULT '0', - `Lv_13` int(5) DEFAULT '0', - `Exp_13` int(10) DEFAULT '0', - `Lv_14` int(5) DEFAULT '0', - `Exp_14` int(10) DEFAULT '0', - `Lv_15` int(5) DEFAULT '0', - `Exp_15` int(10) DEFAULT '0', - `Lv_16` int(5) DEFAULT '0', - `Exp_16` int(10) DEFAULT '0', - `Lv_17` int(5) DEFAULT '0', - `Exp_17` int(10) DEFAULT '0', - `Lv_18` int(5) DEFAULT '0', - `Exp_18` int(10) DEFAULT '0', - `Lv_19` int(5) NOT NULL DEFAULT '0', - `Exp_19` int(10) NOT NULL DEFAULT '0', - `Lv_20` int(5) NOT NULL DEFAULT '0', - `Exp_20` int(10) NOT NULL DEFAULT '0', - `Lv_21` int(5) NOT NULL DEFAULT '0', - `Exp_21` int(10) NOT NULL DEFAULT '0', - `Lv_22` int(5) NOT NULL DEFAULT '0', - `Exp_22` int(10) NOT NULL DEFAULT '0', - `Lv_23` int(5) DEFAULT '0', - `Exp_23` int(10) DEFAULT '0', - `CharacterId` int(20) NOT NULL DEFAULT '0', - `IS_DELETE` int(3) DEFAULT '0', - `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', - `UPDATE_DATE` datetime DEFAULT NULL, - PRIMARY KEY (`CharacterId`) -) ENGINE=MyISAM DEFAULT CHARSET=utf8; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `characlass` --- - -LOCK TABLES `characlass` WRITE; -/*!40000 ALTER TABLE `characlass` DISABLE KEYS */; -/*!40000 ALTER TABLE `characlass` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2016-12-09 17:37:12 +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 10.1.24-MariaDB - mariadb.org binary distribution +-- Server OS: Win32 +-- HeidiSQL Version: 9.4.0.5125 +-- -------------------------------------------------------- + +/*!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 sapphire.characlass +CREATE TABLE IF NOT EXISTS `characlass` ( + `Lv_0` int(5) DEFAULT '0', + `Exp_0` int(10) DEFAULT '0', + `Lv_1` int(5) DEFAULT '0', + `Exp_1` int(10) DEFAULT '0', + `Lv_2` int(5) DEFAULT '0', + `Exp_2` int(10) DEFAULT '0', + `Lv_3` int(5) DEFAULT '0', + `Exp_3` int(10) DEFAULT '0', + `Lv_4` int(5) DEFAULT '0', + `Exp_4` int(10) DEFAULT '0', + `Lv_5` int(5) DEFAULT '0', + `Exp_5` int(10) DEFAULT '0', + `Lv_6` int(5) DEFAULT '0', + `Exp_6` int(10) DEFAULT '0', + `Lv_7` int(5) DEFAULT '0', + `Exp_7` int(10) DEFAULT '0', + `Lv_8` int(5) DEFAULT '0', + `Exp_8` int(10) DEFAULT '0', + `Lv_9` int(5) DEFAULT '0', + `Exp_9` int(10) DEFAULT '0', + `Lv_10` int(5) DEFAULT '0', + `Exp_10` int(10) DEFAULT '0', + `Lv_11` int(5) DEFAULT '0', + `Exp_11` int(10) DEFAULT '0', + `Lv_12` int(5) DEFAULT '0', + `Exp_12` int(10) DEFAULT '0', + `Lv_13` int(5) DEFAULT '0', + `Exp_13` int(10) DEFAULT '0', + `Lv_14` int(5) DEFAULT '0', + `Exp_14` int(10) DEFAULT '0', + `Lv_15` int(5) DEFAULT '0', + `Exp_15` int(10) DEFAULT '0', + `Lv_16` int(5) DEFAULT '0', + `Exp_16` int(10) DEFAULT '0', + `Lv_17` int(5) DEFAULT '0', + `Exp_17` int(10) DEFAULT '0', + `Lv_18` int(5) DEFAULT '0', + `Exp_18` int(10) DEFAULT '0', + `Lv_19` int(5) NOT NULL DEFAULT '0', + `Exp_19` int(10) NOT NULL DEFAULT '0', + `Lv_20` int(5) NOT NULL DEFAULT '0', + `Exp_20` int(10) NOT NULL DEFAULT '0', + `Lv_21` int(5) NOT NULL DEFAULT '0', + `Exp_21` int(10) NOT NULL DEFAULT '0', + `Lv_22` int(5) NOT NULL DEFAULT '0', + `Exp_22` int(10) NOT NULL DEFAULT '0', + `Lv_23` int(5) DEFAULT '0', + `Exp_23` int(10) DEFAULT '0', + `Lv_24` int(5) NOT NULL DEFAULT '0', + `Exp_24` int(10) NOT NULL DEFAULT '0', + `Lv_25` int(5) NOT NULL DEFAULT '0', + `Exp_25` int(19) NOT NULL DEFAULT '0', + `CharacterId` int(20) NOT NULL DEFAULT '0', + `IS_DELETE` int(3) DEFAULT '0', + `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', + `UPDATE_DATE` datetime DEFAULT NULL, + PRIMARY KEY (`CharacterId`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- Dumping data for table sapphire.characlass: 0 rows +DELETE FROM `characlass`; +/*!40000 ALTER TABLE `characlass` DISABLE KEYS */; +/*!40000 ALTER TABLE `characlass` ENABLE KEYS */; + +/*!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/charadetail.sql b/sql/charadetail.sql index 923662fc..1b27b1af 100644 --- a/sql/charadetail.sql +++ b/sql/charadetail.sql @@ -1,116 +1,87 @@ --- MySQL dump 10.13 Distrib 5.7.13, for Win64 (x86_64) --- --- Host: localhost Database: sapphire --- ------------------------------------------------------ --- Server version 5.7.13-log - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!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' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - --- --- Table structure for table `charadetail` --- - -DROP TABLE IF EXISTS `charadetail`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; - -CREATE TABLE charadetail ( - `GuardianDeity` int(3) DEFAULT NULL, - `BirthDay` int(3) DEFAULT NULL, - `BirthMonth` int(3) NOT NULL, - `Class` int(3) DEFAULT NULL, - `MakeValid` int(3) DEFAULT NULL, - `RetainerId` int(20) DEFAULT NULL, - `RetainerName` varchar(32) DEFAULT NULL, - `CreateUnixTime` int(20) DEFAULT NULL, - `IsActive` int(3) DEFAULT NULL, - `IsRename` int(3) DEFAULT NULL, - `Status` int(3) DEFAULT NULL, - `Platform` varchar(32) DEFAULT NULL, - `TotalPlayTime` int(10) DEFAULT '0', - `TotalPlayTimeSecond` float DEFAULT NULL, - `FirstClass` int(3) DEFAULT NULL, - `HomePoint` int(3) DEFAULT NULL, - `FavoritePoint` binary(3) DEFAULT NULL, - `RestPoint` int(10) DEFAULT NULL, - `RentalTimer` float DEFAULT NULL, - `StartTown` int(3) DEFAULT NULL, - `ActiveTitle` int(5) DEFAULT NULL, - `TitleList` binary(32) DEFAULT NULL, - `Achievement` binary(16) DEFAULT NULL, - `Aetheryte` binary(12) DEFAULT NULL, - `HowTo` binary(32) DEFAULT NULL, - `Minions` binary(32) DEFAULT NULL, - `Mounts` binary(11) DEFAULT NULL, - `EquippedMannequin` int(5) DEFAULT NULL, - `ConfigFlags` smallint(5) NOT NULL DEFAULT '0', - `GatheringHistoryPointId` binary(8) DEFAULT NULL, - `GatheringDivisionOpenFla` binary(40) DEFAULT NULL, - `GatheringItemGetFlags` binary(60) DEFAULT NULL, - `RecipeDivisionOpenFlags` binary(80) DEFAULT NULL, - `RecipeCreateFlags` binary(100) DEFAULT NULL, - `QuestCompleteFlags` binary(200) DEFAULT NULL, - `LeveCompleteFlags` binary(200) DEFAULT NULL, - `OpeningSequence` int(3) DEFAULT NULL, - `QuestTracking` binary(10) DEFAULT NULL, - `LeveTicketNum` int(3) DEFAULT NULL, - `LeveTicketLastGetTime` int(10) DEFAULT NULL, - `GuildleveAssignmentSeed` int(5) DEFAULT NULL, - `GuildleveAssignmentCount` int(3) DEFAULT NULL, - `GuildleveFactionCreditBr` int(5) DEFAULT NULL, - `GuildleveFactionCreditAz` int(5) DEFAULT NULL, - `GuildleveFactionCreditHo` int(5) DEFAULT NULL, - `GrandCompany` int(3) DEFAULT NULL, - `GrandCompanyRank` binary(3) DEFAULT NULL, - `Discovery` blob, - `ContentRetryTime` blob, - `ContentJoinTime` int(10) DEFAULT NULL, - `ContentClearFlag` blob, - `CFPenaltyUntil` int unsigned NOT NULL DEFAULT '0', - `TownWarpFstFlags` binary(2) DEFAULT NULL, - `PathId` int(10) DEFAULT NULL, - `StepIndex` int(5) DEFAULT NULL, - `ChocoboTaxiStandFlags` binary(8) DEFAULT NULL, - `unlocks` binary(64) DEFAULT NULL, - `CharacterId` int(20) NOT NULL DEFAULT '0', - `IS_DELETE` int(3) DEFAULT '0', - `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', - `UPDATE_DATE` datetime DEFAULT NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8; - - -ALTER TABLE charadetail - ADD PRIMARY KEY (`CharacterId`); - -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `charadetail` --- - -LOCK TABLES `charadetail` WRITE; -/*!40000 ALTER TABLE `charadetail` DISABLE KEYS */; -/*!40000 ALTER TABLE `charadetail` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2016-12-09 17:37:12 +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 10.1.24-MariaDB - mariadb.org binary distribution +-- Server OS: Win32 +-- HeidiSQL Version: 9.4.0.5125 +-- -------------------------------------------------------- + +/*!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 sapphire.charadetail +CREATE TABLE IF NOT EXISTS `charadetail` ( + `GuardianDeity` int(3) DEFAULT NULL, + `BirthDay` int(3) DEFAULT NULL, + `BirthMonth` int(3) NOT NULL, + `Class` int(3) DEFAULT NULL, + `MakeValid` int(3) DEFAULT NULL, + `RetainerId` int(20) DEFAULT NULL, + `RetainerName` varchar(32) DEFAULT NULL, + `CreateUnixTime` int(20) DEFAULT NULL, + `IsActive` int(3) DEFAULT NULL, + `IsRename` int(3) DEFAULT NULL, + `Status` int(3) DEFAULT NULL, + `Platform` varchar(32) DEFAULT NULL, + `TotalPlayTime` int(10) DEFAULT '0', + `TotalPlayTimeSecond` float DEFAULT NULL, + `FirstClass` int(3) DEFAULT NULL, + `HomePoint` int(3) DEFAULT NULL, + `FavoritePoint` binary(3) DEFAULT NULL, + `RestPoint` int(10) DEFAULT NULL, + `RentalTimer` float DEFAULT NULL, + `StartTown` int(3) DEFAULT NULL, + `ActiveTitle` int(5) DEFAULT NULL, + `TitleList` binary(32) DEFAULT NULL, + `Achievement` binary(16) DEFAULT NULL, + `Aetheryte` binary(16) DEFAULT NULL, + `HowTo` binary(33) DEFAULT NULL, + `Minions` binary(33) DEFAULT NULL, + `Mounts` binary(13) DEFAULT NULL, + `EquippedMannequin` int(5) DEFAULT NULL, + `ConfigFlags` smallint(5) NOT NULL DEFAULT '0', + `GatheringHistoryPointId` binary(8) DEFAULT NULL, + `GatheringDivisionOpenFla` binary(40) DEFAULT NULL, + `GatheringItemGetFlags` binary(60) DEFAULT NULL, + `RecipeDivisionOpenFlags` binary(80) DEFAULT NULL, + `RecipeCreateFlags` binary(100) DEFAULT NULL, + `QuestCompleteFlags` binary(200) DEFAULT NULL, + `LeveCompleteFlags` binary(200) DEFAULT NULL, + `OpeningSequence` int(3) DEFAULT '0', + `QuestTracking` binary(10) DEFAULT NULL, + `LeveTicketNum` int(3) DEFAULT NULL, + `LeveTicketLastGetTime` int(10) DEFAULT NULL, + `GuildleveAssignmentSeed` int(5) DEFAULT NULL, + `GuildleveAssignmentCount` int(3) DEFAULT NULL, + `GuildleveFactionCreditBr` int(5) DEFAULT NULL, + `GuildleveFactionCreditAz` int(5) DEFAULT NULL, + `GuildleveFactionCreditHo` int(5) DEFAULT NULL, + `GrandCompany` int(3) DEFAULT NULL, + `GrandCompanyRank` binary(3) DEFAULT NULL, + `Discovery` blob, + `ContentRetryTime` blob, + `ContentJoinTime` int(10) DEFAULT NULL, + `ContentClearFlag` blob, + `CFPenaltyUntil` int(10) unsigned NOT NULL DEFAULT '0', + `TownWarpFstFlags` binary(2) DEFAULT NULL, + `PathId` int(10) DEFAULT NULL, + `StepIndex` int(5) DEFAULT NULL, + `ChocoboTaxiStandFlags` binary(8) DEFAULT NULL, + `unlocks` binary(64) DEFAULT NULL, + `CharacterId` int(20) NOT NULL DEFAULT '0', + `IS_DELETE` int(3) DEFAULT '0', + `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', + `UPDATE_DATE` datetime DEFAULT NULL, + PRIMARY KEY (`CharacterId`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- Dumping data for table sapphire.charadetail: 0 rows +DELETE FROM `charadetail`; +/*!40000 ALTER TABLE `charadetail` DISABLE KEYS */; +/*!40000 ALTER TABLE `charadetail` ENABLE KEYS */; + +/*!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/charaiteminventory.sql b/sql/charaiteminventory.sql index 15b78f31..ee1c377a 100644 --- a/sql/charaiteminventory.sql +++ b/sql/charaiteminventory.sql @@ -1,81 +1,69 @@ --- MySQL dump 10.13 Distrib 5.7.13, for Win64 (x86_64) --- --- Host: localhost Database: sapphire --- ------------------------------------------------------ --- Server version 5.7.13-log - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; -/*!40103 SET TIME_ZONE='+00:00' */; -/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; -/*!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' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - --- --- Table structure for table `charaiteminventory` --- - -DROP TABLE IF EXISTS `charaiteminventory`; -/*!40101 SET @saved_cs_client = @@character_set_client */; -/*!40101 SET character_set_client = utf8 */; -CREATE TABLE `charaiteminventory` ( - `CharacterId` int(20) NOT NULL, - `storageId` int(10) NOT NULL, - `type` int(5) DEFAULT '0', - `idx` int(5) NOT NULL AUTO_INCREMENT, - `container_0` int(20) DEFAULT '0', - `container_1` int(20) DEFAULT '0', - `container_2` int(20) DEFAULT '0', - `container_3` int(20) DEFAULT '0', - `container_4` int(20) DEFAULT '0', - `container_5` int(20) DEFAULT '0', - `container_6` int(20) DEFAULT '0', - `container_7` int(20) DEFAULT '0', - `container_8` int(20) DEFAULT '0', - `container_9` int(20) DEFAULT '0', - `container_10` int(20) DEFAULT '0', - `container_11` int(20) DEFAULT '0', - `container_12` int(20) DEFAULT '0', - `container_13` int(20) DEFAULT '0', - `container_14` int(20) DEFAULT '0', - `container_15` int(20) DEFAULT '0', - `container_16` int(20) DEFAULT '0', - `container_17` int(20) DEFAULT '0', - `container_18` int(20) DEFAULT '0', - `container_19` int(20) DEFAULT '0', - `container_20` int(20) DEFAULT '0', - `container_21` int(20) DEFAULT '0', - `container_22` int(20) DEFAULT '0', - `container_23` int(20) DEFAULT '0', - `container_24` int(20) DEFAULT '0', - `IS_DELETE` int(3) DEFAULT '0', - `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', - `UPDATE_DATE` datetime DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`CharacterId`,`storageId`), - UNIQUE KEY `idx` (`idx`) -) ENGINE=MyISAM AUTO_INCREMENT=161 DEFAULT CHARSET=utf8; -/*!40101 SET character_set_client = @saved_cs_client */; - --- --- Dumping data for table `charaiteminventory` --- - -LOCK TABLES `charaiteminventory` WRITE; -/*!40000 ALTER TABLE `charaiteminventory` DISABLE KEYS */; -/*!40000 ALTER TABLE `charaiteminventory` ENABLE KEYS */; -UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; - -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; - --- Dump completed on 2016-12-09 17:37:10 +-- -------------------------------------------------------- +-- Host: 127.0.0.1 +-- Server version: 10.1.24-MariaDB - mariadb.org binary distribution +-- Server OS: Win32 +-- HeidiSQL Version: 9.4.0.5125 +-- -------------------------------------------------------- + +/*!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 sapphire.charaiteminventory +CREATE TABLE IF NOT EXISTS `charaiteminventory` ( + `CharacterId` int(20) NOT NULL, + `storageId` int(10) NOT NULL, + `type` int(5) DEFAULT '0', + `idx` int(5) NOT NULL AUTO_INCREMENT, + `container_0` int(20) DEFAULT '0', + `container_1` int(20) DEFAULT '0', + `container_2` int(20) DEFAULT '0', + `container_3` int(20) DEFAULT '0', + `container_4` int(20) DEFAULT '0', + `container_5` int(20) DEFAULT '0', + `container_6` int(20) DEFAULT '0', + `container_7` int(20) DEFAULT '0', + `container_8` int(20) DEFAULT '0', + `container_9` int(20) DEFAULT '0', + `container_10` int(20) DEFAULT '0', + `container_11` int(20) DEFAULT '0', + `container_12` int(20) DEFAULT '0', + `container_13` int(20) DEFAULT '0', + `container_14` int(20) DEFAULT '0', + `container_15` int(20) DEFAULT '0', + `container_16` int(20) DEFAULT '0', + `container_17` int(20) DEFAULT '0', + `container_18` int(20) DEFAULT '0', + `container_19` int(20) DEFAULT '0', + `container_20` int(20) DEFAULT '0', + `container_21` int(20) DEFAULT '0', + `container_22` int(20) DEFAULT '0', + `container_23` int(20) DEFAULT '0', + `container_24` int(20) DEFAULT '0', + `container_25` int(20) NOT NULL, + `container_26` int(20) NOT NULL, + `container_27` int(20) NOT NULL, + `container_28` int(20) NOT NULL, + `container_29` int(20) NOT NULL, + `container_30` int(20) NOT NULL, + `container_31` int(20) NOT NULL, + `container_32` int(20) NOT NULL, + `container_33` int(20) NOT NULL, + `container_34` int(20) NOT NULL, + `IS_DELETE` int(3) DEFAULT '0', + `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', + `UPDATE_DATE` datetime DEFAULT CURRENT_TIMESTAMP, + PRIMARY KEY (`CharacterId`,`storageId`), + UNIQUE KEY `idx` (`idx`) +) ENGINE=MyISAM AUTO_INCREMENT=161 DEFAULT CHARSET=utf8; + +-- Dumping data for table sapphire.charaiteminventory: 0 rows +DELETE FROM `charaiteminventory`; +/*!40000 ALTER TABLE `charaiteminventory` DISABLE KEYS */; +/*!40000 ALTER TABLE `charaiteminventory` ENABLE KEYS */; + +/*!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 */; From d75370515aa5cb63cfcb81adb895b2076911527a Mon Sep 17 00:00:00 2001 From: SapphireMordred <30826167+SapphireMordred@users.noreply.github.com> Date: Wed, 30 Aug 2017 16:53:17 +0200 Subject: [PATCH 4/4] fixed default values in charaiteminventory --- sql/charaiteminventory.sql | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sql/charaiteminventory.sql b/sql/charaiteminventory.sql index ee1c377a..e3bcd1b3 100644 --- a/sql/charaiteminventory.sql +++ b/sql/charaiteminventory.sql @@ -42,16 +42,16 @@ CREATE TABLE IF NOT EXISTS `charaiteminventory` ( `container_22` int(20) DEFAULT '0', `container_23` int(20) DEFAULT '0', `container_24` int(20) DEFAULT '0', - `container_25` int(20) NOT NULL, - `container_26` int(20) NOT NULL, - `container_27` int(20) NOT NULL, - `container_28` int(20) NOT NULL, - `container_29` int(20) NOT NULL, - `container_30` int(20) NOT NULL, - `container_31` int(20) NOT NULL, - `container_32` int(20) NOT NULL, - `container_33` int(20) NOT NULL, - `container_34` int(20) NOT NULL, + `container_25` int(20) DEFAULT '0', + `container_26` int(20) DEFAULT '0', + `container_27` int(20) DEFAULT '0', + `container_28` int(20) DEFAULT '0', + `container_29` int(20) DEFAULT '0', + `container_30` int(20) DEFAULT '0', + `container_31` int(20) DEFAULT '0', + `container_32` int(20) DEFAULT '0', + `container_33` int(20) DEFAULT '0', + `container_34` int(20) DEFAULT '0', `IS_DELETE` int(3) DEFAULT '0', `IS_NOT_ACTIVE_FLG` int(3) DEFAULT '0', `UPDATE_DATE` datetime DEFAULT CURRENT_TIMESTAMP,