From a4ca9658171a7fb21d30fd0382863eb125ce0463 Mon Sep 17 00:00:00 2001 From: MELERIX <MELERIX@users.noreply.github.com> Date: Thu, 17 Mar 2011 04:38:00 +0000 Subject: [PATCH] SQL: Time/Date related columns in some tables changed to bigint(13) due we are using unix time + miliseconds. --- L2J_DataPack/sql/accounts.sql | 2 +- L2J_DataPack/sql/auction.sql | 2 +- L2J_DataPack/sql/auction_bid.sql | 2 +- L2J_DataPack/sql/castle.sql | 4 +- L2J_DataPack/sql/castle_functions.sql | 2 +- L2J_DataPack/sql/character_instance_time.sql | 2 +- L2J_DataPack/sql/character_offline_trade.sql | 2 +- L2J_DataPack/sql/character_reco_bonus.sql | 2 +- L2J_DataPack/sql/character_skills_save.sql | 2 +- L2J_DataPack/sql/characters.sql | 10 +- L2J_DataPack/sql/clan_data.sql | 6 +- L2J_DataPack/sql/clanhall.sql | 2 +- L2J_DataPack/sql/clanhall_functions.sql | 2 +- L2J_DataPack/sql/cursed_weapons.sql | 2 +- L2J_DataPack/sql/fort.sql | 4 +- L2J_DataPack/sql/fort_functions.sql | 2 +- L2J_DataPack/sql/games.sql | 2 +- L2J_DataPack/sql/global_tasks.sql | 2 +- L2J_DataPack/sql/grandboss_data.sql | 2 +- L2J_DataPack/sql/heroes_diary.sql | 2 +- L2J_DataPack/sql/item_auction.sql | 4 +- L2J_DataPack/sql/itemsonground.sql | 2 +- L2J_DataPack/sql/merchant_buylists.sql | 2 +- L2J_DataPack/sql/messages.sql | 2 +- L2J_DataPack/sql/olympiad_data.sql | 6 +- L2J_DataPack/sql/olympiad_fights.sql | 4 +- L2J_DataPack/sql/posts.sql | 2 +- L2J_DataPack/sql/raidboss_spawnlist.sql | 2 +- L2J_DataPack/sql/seven_signs_festival.sql | 2 +- L2J_DataPack/sql/seven_signs_status.sql | 2 +- L2J_DataPack/sql/topic.sql | 2 +- L2J_DataPack/sql/updates/20110210update.sql | 3 +- L2J_DataPack/sql/updates/20110316update.sql | 101 +++++++++++++++++++ 33 files changed, 145 insertions(+), 45 deletions(-) create mode 100644 L2J_DataPack/sql/updates/20110316update.sql diff --git a/L2J_DataPack/sql/accounts.sql b/L2J_DataPack/sql/accounts.sql index b5039e3f17..39ff2c14ce 100644 --- a/L2J_DataPack/sql/accounts.sql +++ b/L2J_DataPack/sql/accounts.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS `accounts` ( `login` VARCHAR(45) NOT NULL default '', `password` VARCHAR(45) , - `lastactive` DECIMAL(20), + `lastactive` bigint(13) unsigned NOT NULL DEFAULT '0', `accessLevel` TINYINT NOT NULL DEFAULT 0, `lastIP` CHAR(15) NULL DEFAULT NULL, `lastServer` TINYINT DEFAULT 1, diff --git a/L2J_DataPack/sql/auction.sql b/L2J_DataPack/sql/auction.sql index c79ae7e519..beae40221e 100644 --- a/L2J_DataPack/sql/auction.sql +++ b/L2J_DataPack/sql/auction.sql @@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS `auction` ( `itemQuantity` BIGINT UNSIGNED NOT NULL default 0, `startingBid` BIGINT UNSIGNED NOT NULL default 0, `currentBid` BIGINT UNSIGNED NOT NULL default 0, - `endDate` decimal(20,0) NOT NULL default '0', + `endDate` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`itemType`,`itemId`,`itemObjectId`), KEY `id` (`id`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/auction_bid.sql b/L2J_DataPack/sql/auction_bid.sql index 4aba193452..ba4b7cdb58 100644 --- a/L2J_DataPack/sql/auction_bid.sql +++ b/L2J_DataPack/sql/auction_bid.sql @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS `auction_bid` ( `bidderName` varchar(50) NOT NULL, `clan_name` varchar(50) NOT NULL, `maxBid` BIGINT UNSIGNED NOT NULL default 0, - `time_bid` decimal(20,0) NOT NULL default '0', + `time_bid` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`auctionId`,`bidderId`), KEY `id` (`id`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/castle.sql b/L2J_DataPack/sql/castle.sql index 7409af8c3e..52e1fd882b 100644 --- a/L2J_DataPack/sql/castle.sql +++ b/L2J_DataPack/sql/castle.sql @@ -3,9 +3,9 @@ CREATE TABLE IF NOT EXISTS `castle` ( `name` varchar(25) NOT NULL, `taxPercent` INT NOT NULL default 15, `treasury` BIGINT NOT NULL default 0, - `siegeDate` DECIMAL(20,0) NOT NULL default 0, + `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0', `regTimeOver` enum('true','false') DEFAULT 'true' NOT NULL, - `regTimeEnd` DECIMAL(20,0) NOT NULL default 0, + `regTimeEnd` bigint(13) unsigned NOT NULL DEFAULT '0', `showNpcCrest` enum('true','false') DEFAULT 'false' NOT NULL, PRIMARY KEY (`name`), KEY `id` (`id`) diff --git a/L2J_DataPack/sql/castle_functions.sql b/L2J_DataPack/sql/castle_functions.sql index f702494b12..aa187638c8 100644 --- a/L2J_DataPack/sql/castle_functions.sql +++ b/L2J_DataPack/sql/castle_functions.sql @@ -4,6 +4,6 @@ CREATE TABLE IF NOT EXISTS `castle_functions` ( `lvl` int(3) NOT NULL default '0', `lease` int(10) NOT NULL default '0', `rate` decimal(20,0) NOT NULL default '0', - `endTime` decimal(20,0) NOT NULL default '0', + `endTime` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`castle_id`,`type`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/character_instance_time.sql b/L2J_DataPack/sql/character_instance_time.sql index 380f4469d4..20af29b316 100644 --- a/L2J_DataPack/sql/character_instance_time.sql +++ b/L2J_DataPack/sql/character_instance_time.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS `character_instance_time` ( `charId` INT UNSIGNED NOT NULL DEFAULT '0', `instanceId` int(3) NOT NULL DEFAULT '0', - `time` decimal(20) NOT NULL DEFAULT '0', + `time` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`charId`,`instanceId`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/character_offline_trade.sql b/L2J_DataPack/sql/character_offline_trade.sql index 38300c9233..9167dc7a08 100644 --- a/L2J_DataPack/sql/character_offline_trade.sql +++ b/L2J_DataPack/sql/character_offline_trade.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS `character_offline_trade` ( `charId` int(10) unsigned NOT NULL, - `time` bigint(20) unsigned NOT NULL DEFAULT '0', + `time` bigint(13) unsigned NOT NULL DEFAULT '0', `type` tinyint(4) NOT NULL DEFAULT '0', `title` varchar(50) DEFAULT NULL, PRIMARY KEY (`charId`) diff --git a/L2J_DataPack/sql/character_reco_bonus.sql b/L2J_DataPack/sql/character_reco_bonus.sql index 5c249cdbef..589afda8a4 100644 --- a/L2J_DataPack/sql/character_reco_bonus.sql +++ b/L2J_DataPack/sql/character_reco_bonus.sql @@ -2,6 +2,6 @@ CREATE TABLE IF NOT EXISTS `character_reco_bonus` ( `charId` int(10) unsigned NOT NULL, `rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0', `rec_left` tinyint(3) unsigned NOT NULL DEFAULT '0', - `time_left` decimal(20,0) unsigned NOT NULL DEFAULT '0', + `time_left` bigint(13) unsigned NOT NULL DEFAULT '0', UNIQUE KEY `charId` (`charId`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/character_skills_save.sql b/L2J_DataPack/sql/character_skills_save.sql index 9860a5b057..f7ca8c37d5 100644 --- a/L2J_DataPack/sql/character_skills_save.sql +++ b/L2J_DataPack/sql/character_skills_save.sql @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS `character_skills_save` ( `effect_count` INT NOT NULL default 0, `effect_cur_time` INT NOT NULL default 0, `reuse_delay` INT(8) NOT NULL DEFAULT 0, - `systime` BIGINT UNSIGNED NOT NULL DEFAULT 0, + `systime` bigint(13) unsigned NOT NULL DEFAULT '0', `restore_type` INT(1) NOT NULL DEFAULT 0, `class_index` INT(1) NOT NULL DEFAULT 0, `buff_index` INT(2) NOT NULL default 0, diff --git a/L2J_DataPack/sql/characters.sql b/L2J_DataPack/sql/characters.sql index dbb677b4fd..72250adca6 100644 --- a/L2J_DataPack/sql/characters.sql +++ b/L2J_DataPack/sql/characters.sql @@ -29,7 +29,7 @@ CREATE TABLE IF NOT EXISTS `characters` ( `classid` TINYINT UNSIGNED DEFAULT NULL, `base_class` TINYINT UNSIGNED NOT NULL DEFAULT 0, `transform_id` SMALLINT UNSIGNED NOT NULL DEFAULT 0, - `deletetime` BIGINT DEFAULT NULL, + `deletetime` bigint(13) unsigned NOT NULL DEFAULT '0', `cancraft` TINYINT UNSIGNED DEFAULT NULL, `title` VARCHAR(16) DEFAULT NULL, `title_color` MEDIUMINT UNSIGNED NOT NULL DEFAULT '16777079', @@ -38,7 +38,7 @@ CREATE TABLE IF NOT EXISTS `characters` ( `onlinetime` INT DEFAULT NULL, `char_slot` TINYINT UNSIGNED DEFAULT NULL, `newbie` MEDIUMINT UNSIGNED DEFAULT 1, - `lastAccess` BIGINT UNSIGNED DEFAULT NULL, + `lastAccess` bigint(13) unsigned NOT NULL DEFAULT '0', `clan_privs` MEDIUMINT UNSIGNED DEFAULT 0, `wantspeace` TINYINT UNSIGNED DEFAULT 0, `isin7sdungeon` TINYINT UNSIGNED NOT NULL default 0, @@ -51,12 +51,12 @@ CREATE TABLE IF NOT EXISTS `characters` ( `apprentice` INT UNSIGNED NOT NULL DEFAULT 0, `sponsor` INT UNSIGNED NOT NULL DEFAULT 0, `varka_ketra_ally` TINYINT NOT NULL DEFAULT 0, - `clan_join_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0, - `clan_create_expiry_time` BIGINT UNSIGNED NOT NULL DEFAULT 0, + `clan_join_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', + `clan_create_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', `death_penalty_level` SMALLINT UNSIGNED NOT NULL DEFAULT 0, `bookmarkslot` SMALLINT UNSIGNED NOT NULL DEFAULT 0, `vitality_points` SMALLINT UNSIGNED NOT NULL DEFAULT 0, - `createTime` DECIMAL(20,0) NOT NULL default 0, + `createTime` bigint(13) unsigned NOT NULL DEFAULT '0', `language` VARCHAR(2) DEFAULT NULL, PRIMARY KEY (`charId`), KEY `clanid` (`clanid`) diff --git a/L2J_DataPack/sql/clan_data.sql b/L2J_DataPack/sql/clan_data.sql index 7a536bbdd7..45f216f2a8 100644 --- a/L2J_DataPack/sql/clan_data.sql +++ b/L2J_DataPack/sql/clan_data.sql @@ -11,10 +11,10 @@ CREATE TABLE IF NOT EXISTS `clan_data` ( `crest_large_id` INT, `ally_crest_id` INT, `auction_bid_at` INT NOT NULL default 0, - `ally_penalty_expiry_time` DECIMAL( 20,0 ) NOT NULL DEFAULT 0, + `ally_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', `ally_penalty_type` DECIMAL( 1 ) NOT NULL DEFAULT 0, - `char_penalty_expiry_time` DECIMAL( 20,0 ) NOT NULL DEFAULT 0, - `dissolving_expiry_time` DECIMAL( 20,0 ) NOT NULL DEFAULT 0, + `char_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', + `dissolving_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`clan_id`), KEY `leader_id` (`leader_id`), KEY `ally_id` (`ally_id`) diff --git a/L2J_DataPack/sql/clanhall.sql b/L2J_DataPack/sql/clanhall.sql index 0952e35c50..32fe373bfc 100644 --- a/L2J_DataPack/sql/clanhall.sql +++ b/L2J_DataPack/sql/clanhall.sql @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS `clanhall` ( `lease` int(10) NOT NULL default '0', `desc` text NOT NULL, `location` varchar(15) NOT NULL default '', - `paidUntil` decimal(20,0) NOT NULL default '0', + `paidUntil` bigint(13) unsigned NOT NULL DEFAULT '0', `Grade` decimal(1,0) NOT NULL default '0', `paid` int( 1 ) NOT NULL default '0', PRIMARY KEY `id` (`id`) diff --git a/L2J_DataPack/sql/clanhall_functions.sql b/L2J_DataPack/sql/clanhall_functions.sql index b782f0f583..bd8c3e31cb 100644 --- a/L2J_DataPack/sql/clanhall_functions.sql +++ b/L2J_DataPack/sql/clanhall_functions.sql @@ -4,6 +4,6 @@ CREATE TABLE IF NOT EXISTS `clanhall_functions` ( `lvl` int(3) NOT NULL default '0', `lease` int(10) NOT NULL default '0', `rate` decimal(20,0) NOT NULL default '0', - `endTime` decimal(20,0) NOT NULL default '0', + `endTime` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`hall_id`,`type`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/cursed_weapons.sql b/L2J_DataPack/sql/cursed_weapons.sql index dd3c99d5f1..8723138878 100644 --- a/L2J_DataPack/sql/cursed_weapons.sql +++ b/L2J_DataPack/sql/cursed_weapons.sql @@ -4,6 +4,6 @@ CREATE TABLE IF NOT EXISTS `cursed_weapons` ( `playerKarma` INT DEFAULT 0, `playerPkKills` INT DEFAULT 0, `nbKills` INT DEFAULT 0, - `endTime` DECIMAL(20,0) DEFAULT 0, + `endTime` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`itemId`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/fort.sql b/L2J_DataPack/sql/fort.sql index 1a93ffbf95..c1b42d397c 100644 --- a/L2J_DataPack/sql/fort.sql +++ b/L2J_DataPack/sql/fort.sql @@ -1,8 +1,8 @@ CREATE TABLE IF NOT EXISTS `fort` ( `id` int(11) NOT NULL default 0, `name` varchar(25) NOT NULL, - `siegeDate` decimal(20,0) NOT NULL default 0, - `lastOwnedTime` decimal(20,0) NOT NULL default 0, + `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0', + `lastOwnedTime` bigint(13) unsigned NOT NULL DEFAULT '0', `owner` int(11) NOT NULL default 0, `fortType` int(1) NOT NULL default 0, `state` int(1) NOT NULL default 0, diff --git a/L2J_DataPack/sql/fort_functions.sql b/L2J_DataPack/sql/fort_functions.sql index 73d9eae8e7..4f6b2782a4 100644 --- a/L2J_DataPack/sql/fort_functions.sql +++ b/L2J_DataPack/sql/fort_functions.sql @@ -4,6 +4,6 @@ CREATE TABLE IF NOT EXISTS `fort_functions` ( `lvl` int(3) NOT NULL default '0', `lease` int(10) NOT NULL default '0', `rate` decimal(20,0) NOT NULL default '0', - `endTime` decimal(20,0) NOT NULL default '0', + `endTime` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`fort_id`,`type`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/games.sql b/L2J_DataPack/sql/games.sql index b1071615cc..dc22fc9363 100644 --- a/L2J_DataPack/sql/games.sql +++ b/L2J_DataPack/sql/games.sql @@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS `games` ( `prize1` INT NOT NULL default 0, `prize2` INT NOT NULL default 0, `prize3` INT NOT NULL default 0, - `enddate` decimal(20,0) NOT NULL default 0, + `enddate` bigint(13) unsigned NOT NULL DEFAULT '0', `finished` INT NOT NULL default 0, PRIMARY KEY (`id`,`idnr`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/global_tasks.sql b/L2J_DataPack/sql/global_tasks.sql index 4d4195b557..08a3cec636 100644 --- a/L2J_DataPack/sql/global_tasks.sql +++ b/L2J_DataPack/sql/global_tasks.sql @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `global_tasks` ( `id` int(11) NOT NULL auto_increment, `task` varchar(50) NOT NULL default '', `type` varchar(50) NOT NULL default '', - `last_activation` decimal(20,0) NOT NULL default 0, + `last_activation` bigint(13) unsigned NOT NULL DEFAULT '0', `param1` varchar(100) NOT NULL default '', `param2` varchar(100) NOT NULL default '', `param3` varchar(255) NOT NULL default '', diff --git a/L2J_DataPack/sql/grandboss_data.sql b/L2J_DataPack/sql/grandboss_data.sql index 958a66f4ca..5bffb4d1d9 100644 --- a/L2J_DataPack/sql/grandboss_data.sql +++ b/L2J_DataPack/sql/grandboss_data.sql @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `grandboss_data` ( `loc_y` INTEGER NOT NULL DEFAULT 0, `loc_z` INTEGER NOT NULL DEFAULT 0, `heading` INTEGER NOT NULL DEFAULT 0, - `respawn_time` BIGINT NOT NULL DEFAULT 0, + `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0', `currentHP` DECIMAL(12,0) DEFAULT NULL, `currentMP` DECIMAL(8,0) DEFAULT NULL, `status` TINYINT NOT NULL DEFAULT 0, diff --git a/L2J_DataPack/sql/heroes_diary.sql b/L2J_DataPack/sql/heroes_diary.sql index 9e08825bf7..019daa6159 100644 --- a/L2J_DataPack/sql/heroes_diary.sql +++ b/L2J_DataPack/sql/heroes_diary.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS `heroes_diary` ( `charId` int(10) unsigned NOT NULL, - `time` decimal(20,0) unsigned NOT NULL, + `time` bigint(13) unsigned NOT NULL DEFAULT '0', `action` tinyint(2) unsigned NOT NULL default '0', `param` int(11) unsigned NOT NULL default '0', KEY `charId` (`charId`) diff --git a/L2J_DataPack/sql/item_auction.sql b/L2J_DataPack/sql/item_auction.sql index 1a9cd6f92c..af19323f79 100644 --- a/L2J_DataPack/sql/item_auction.sql +++ b/L2J_DataPack/sql/item_auction.sql @@ -2,8 +2,8 @@ CREATE TABLE IF NOT EXISTS `item_auction` ( `auctionId` int(11) NOT NULL, `instanceId` int(11) NOT NULL, `auctionItemId` int(11) NOT NULL, - `startingTime` bigint(20) NOT NULL, - `endingTime` bigint(20) NOT NULL, + `startingTime` bigint(13) unsigned NOT NULL DEFAULT '0', + `endingTime` bigint(13) unsigned NOT NULL DEFAULT '0', `auctionStateId` tinyint(1) NOT NULL, PRIMARY KEY (`auctionId`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/itemsonground.sql b/L2J_DataPack/sql/itemsonground.sql index 6f09cb5786..73fda390cc 100644 --- a/L2J_DataPack/sql/itemsonground.sql +++ b/L2J_DataPack/sql/itemsonground.sql @@ -6,7 +6,7 @@ CREATE TABLE IF NOT EXISTS `itemsonground` ( `x` int(11) default NULL, `y` int(11) default NULL, `z` int(11) default NULL, - `drop_time` decimal(20,0) default NULL, + `drop_time` bigint(13) unsigned NOT NULL DEFAULT '0', `equipable` int(1) default '0', PRIMARY KEY (`object_id`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/merchant_buylists.sql b/L2J_DataPack/sql/merchant_buylists.sql index e86abd7cea..566c4f8647 100644 --- a/L2J_DataPack/sql/merchant_buylists.sql +++ b/L2J_DataPack/sql/merchant_buylists.sql @@ -7,7 +7,7 @@ CREATE TABLE `merchant_buylists` ( `count` tinyint(2) NOT NULL DEFAULT '-1', `currentCount` tinyint(2) NOT NULL DEFAULT '-1', `time` int(11) NOT NULL DEFAULT '0', - `savetimer` decimal(20,0) NOT NULL DEFAULT '0', + `savetimer` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`shop_id`,`order`) ); diff --git a/L2J_DataPack/sql/messages.sql b/L2J_DataPack/sql/messages.sql index a877cfae9e..4a7dc80124 100644 --- a/L2J_DataPack/sql/messages.sql +++ b/L2J_DataPack/sql/messages.sql @@ -4,7 +4,7 @@ CREATE TABLE IF NOT EXISTS `messages` ( `receiverId` INT NOT NULL DEFAULT 0, `subject` TINYTEXT, `content` TEXT, - `expiration` BIGINT NOT NULL DEFAULT 0, + `expiration` bigint(13) unsigned NOT NULL DEFAULT '0', `reqAdena` BIGINT NOT NULL DEFAULT 0, `hasAttachments` enum('true','false') DEFAULT 'false' NOT NULL, `isUnread` enum('true','false') DEFAULT 'true' NOT NULL, diff --git a/L2J_DataPack/sql/olympiad_data.sql b/L2J_DataPack/sql/olympiad_data.sql index 7b58fd4239..bc5a6b5e9d 100644 --- a/L2J_DataPack/sql/olympiad_data.sql +++ b/L2J_DataPack/sql/olympiad_data.sql @@ -2,8 +2,8 @@ CREATE TABLE IF NOT EXISTS `olympiad_data` ( `id` TINYINT UNSIGNED NOT NULL default 0, `current_cycle` MEDIUMINT UNSIGNED NOT NULL default 1, `period` MEDIUMINT UNSIGNED NOT NULL default 0, - `olympiad_end` BIGINT UNSIGNED NOT NULL default 0, - `validation_end` BIGINT UNSIGNED NOT NULL default 0, - `next_weekly_change` BIGINT UNSIGNED NOT NULL default 0, + `olympiad_end` bigint(13) unsigned NOT NULL DEFAULT '0', + `validation_end` bigint(13) unsigned NOT NULL DEFAULT '0', + `next_weekly_change` bigint(13) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ); \ No newline at end of file diff --git a/L2J_DataPack/sql/olympiad_fights.sql b/L2J_DataPack/sql/olympiad_fights.sql index d0dbe0102c..3221b0dfa1 100644 --- a/L2J_DataPack/sql/olympiad_fights.sql +++ b/L2J_DataPack/sql/olympiad_fights.sql @@ -4,8 +4,8 @@ CREATE TABLE IF NOT EXISTS `olympiad_fights` ( `charOneClass` tinyint(3) unsigned NOT NULL default '0', `charTwoClass` tinyint(3) unsigned NOT NULL default '0', `winner` tinyint(1) unsigned NOT NULL default '0', - `start` decimal(20,0) unsigned NOT NULL default '0', - `time` int(10) unsigned NOT NULL default '0', + `start` bigint(13) unsigned NOT NULL DEFAULT '0', + `time` bigint(13) unsigned NOT NULL DEFAULT '0', `classed` tinyint(1) unsigned NOT NULL default '0', KEY `charOneId` (`charOneId`), KEY `charTwoId` (`charTwoId`) diff --git a/L2J_DataPack/sql/posts.sql b/L2J_DataPack/sql/posts.sql index c7cb943fa8..0d8a5e96d8 100644 --- a/L2J_DataPack/sql/posts.sql +++ b/L2J_DataPack/sql/posts.sql @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `posts` ( `post_id` int(8) NOT NULL default '0', `post_owner_name` varchar(255) NOT NULL default '', `post_ownerid` int(8) NOT NULL default '0', - `post_date` decimal(20,0) NOT NULL default '0', + `post_date` bigint(13) unsigned NOT NULL DEFAULT '0', `post_topic_id` int(8) NOT NULL default '0', `post_forum_id` int(8) NOT NULL default '0', `post_txt` text NOT NULL diff --git a/L2J_DataPack/sql/raidboss_spawnlist.sql b/L2J_DataPack/sql/raidboss_spawnlist.sql index 9737642291..452df3fa17 100644 --- a/L2J_DataPack/sql/raidboss_spawnlist.sql +++ b/L2J_DataPack/sql/raidboss_spawnlist.sql @@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS `raidboss_spawnlist` ( `heading` INT NOT NULL default 0, `respawn_min_delay` INT(11) NOT NULL default '43200', `respawn_max_delay` INT(11) NOT NULL default '129600', - `respawn_time` BIGINT NOT NULL default 0, + `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0', `currentHp` decimal(8,0) default NULL, `currentMp` decimal(8,0) default NULL, PRIMARY KEY (`boss_id`) diff --git a/L2J_DataPack/sql/seven_signs_festival.sql b/L2J_DataPack/sql/seven_signs_festival.sql index bf685a01bf..cb8d981ab9 100644 --- a/L2J_DataPack/sql/seven_signs_festival.sql +++ b/L2J_DataPack/sql/seven_signs_festival.sql @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `seven_signs_festival` ( `festivalId` int(1) NOT NULL default '0', `cabal` varchar(4) NOT NULL default '', `cycle` int(4) NOT NULL default '0', - `date` bigint(50) default '0', + `date` bigint(13) unsigned NOT NULL DEFAULT '0', `score` int(5) NOT NULL default '0', `members` varchar(255) NOT NULL default '', PRIMARY KEY (`festivalId`,`cabal`,`cycle`) diff --git a/L2J_DataPack/sql/seven_signs_status.sql b/L2J_DataPack/sql/seven_signs_status.sql index f3577d8a63..ab89a54e57 100644 --- a/L2J_DataPack/sql/seven_signs_status.sql +++ b/L2J_DataPack/sql/seven_signs_status.sql @@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS `seven_signs_status` ( `current_cycle` int(10) NOT NULL default '1', `festival_cycle` int(10) NOT NULL default '1', `active_period` int(10) NOT NULL default '1', - `date` decimal(20,0) NOT NULL default 0, + `date` bigint(13) unsigned NOT NULL DEFAULT '0', `previous_winner` int(10) NOT NULL default '0', `dawn_stone_score` DECIMAL(20,0) NOT NULL default '0', `dawn_festival_score` int(10) NOT NULL default '0', diff --git a/L2J_DataPack/sql/topic.sql b/L2J_DataPack/sql/topic.sql index a1dea0aef9..be1a968ab3 100644 --- a/L2J_DataPack/sql/topic.sql +++ b/L2J_DataPack/sql/topic.sql @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS `topic` ( `topic_id` int(8) NOT NULL default '0', `topic_forum_id` int(8) NOT NULL default '0', `topic_name` varchar(255) NOT NULL default '', - `topic_date` decimal(20,0) NOT NULL default '0', + `topic_date` bigint(13) unsigned NOT NULL DEFAULT '0', `topic_ownername` varchar(255) NOT NULL default '0', `topic_ownerid` int(8) NOT NULL default '0', `topic_type` int(8) NOT NULL default '0', diff --git a/L2J_DataPack/sql/updates/20110210update.sql b/L2J_DataPack/sql/updates/20110210update.sql index fe0d6d024a..5f8a0a660e 100644 --- a/L2J_DataPack/sql/updates/20110210update.sql +++ b/L2J_DataPack/sql/updates/20110210update.sql @@ -6,5 +6,4 @@ MODIFY `charId` int(10) unsigned NOT NULL; UPDATE `character_reco_bonus` SET `rec_have`=255 WHERE `rec_have`>255; ALTER TABLE `character_reco_bonus` -MODIFY `rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0'; - +MODIFY `rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0'; \ No newline at end of file diff --git a/L2J_DataPack/sql/updates/20110316update.sql b/L2J_DataPack/sql/updates/20110316update.sql new file mode 100644 index 0000000000..c4b0c14fff --- /dev/null +++ b/L2J_DataPack/sql/updates/20110316update.sql @@ -0,0 +1,101 @@ +ALTER TABLE `accounts` +MODIFY `lastactive` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `auction` +MODIFY `endDate` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `auction_bid` +MODIFY `time_bid` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `castle` +MODIFY `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `regTimeEnd` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `castle_functions` +MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `character_instance_time` +MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `character_offline_trade` +MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `character_skills_save` +MODIFY `systime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `character_reco_bonus` +MODIFY `time_left` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `characters` +MODIFY `deletetime` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `lastAccess` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `clan_join_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `clan_create_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `createTime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `clan_data` +MODIFY `ally_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `char_penalty_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `dissolving_expiry_time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `clanhall` +MODIFY `paidUntil` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `clanhall_functions` +MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `cursed_weapons` +MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `fort` +MODIFY `siegeDate` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `lastOwnedTime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `fort_functions` +MODIFY `endTime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `grandboss_data` +MODIFY `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `games` +MODIFY `enddate` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `global_tasks` +MODIFY `last_activation` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `heroes_diary` +MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `item_auction` +MODIFY `startingTime` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `endingTime` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `itemsonground` +MODIFY `drop_time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `messages` +MODIFY `expiration` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `olympiad_data` +MODIFY `olympiad_end` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `validation_end` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `next_weekly_change` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `olympiad_fights` +MODIFY `start` bigint(13) unsigned NOT NULL DEFAULT '0', +MODIFY `time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `posts` +MODIFY `post_date` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `raidboss_spawnlist` +MODIFY `respawn_time` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `seven_signs_festival` +MODIFY `date` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `seven_signs_status` +MODIFY `date` bigint(13) unsigned NOT NULL DEFAULT '0'; + +ALTER TABLE `topic` +MODIFY `topic_date` bigint(13) unsigned NOT NULL DEFAULT '0'; \ No newline at end of file -- GitLab