SQL v2 for /claim. Added all live veteran rewards 1day-8years.
This commit is contained in:
parent
a32ffa1c81
commit
4159e98f77
1 changed files with 26 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
CREATE TABLE `character_claim_items` (
|
CREATE TABLE IF NOT EXISTS `character_claim_items` (
|
||||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
`char_id` int(10) unsigned DEFAULT 0,
|
`char_id` int(10) unsigned DEFAULT 0,
|
||||||
`item_id` int(10) unsigned DEFAULT 0,
|
`item_id` int(10) unsigned DEFAULT 0,
|
||||||
|
@ -6,21 +6,38 @@ CREATE TABLE `character_claim_items` (
|
||||||
`curr_claim` int(10) unsigned DEFAULT 0,
|
`curr_claim` int(10) unsigned DEFAULT 0,
|
||||||
`one_per_char` int(11) unsigned DEFAULT 0,
|
`one_per_char` int(11) unsigned DEFAULT 0,
|
||||||
`last_claim` bigint(20) unsigned DEFAULT 0,
|
`last_claim` bigint(20) unsigned DEFAULT 0,
|
||||||
|
`veteran_reward_time` bigint(20) unsigned DEFAULT 0 COMMENT 'account age in seconds',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `claim_items` (
|
CREATE TABLE IF NOT EXISTS `claim_items` (
|
||||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
`item_id` int(11) NOT NULL DEFAULT 0,
|
`item_id` int(11) NOT NULL DEFAULT 0,
|
||||||
`max_claim` int(11) NOT NULL DEFAULT 0,
|
`max_claim` int(11) NOT NULL DEFAULT 0,
|
||||||
`one_per_char` int(10) unsigned DEFAULT 0,
|
`one_per_char` int(10) unsigned DEFAULT 0,
|
||||||
|
`veteran_reward_time` bigint(20) unsigned DEFAULT 0,
|
||||||
|
`comment` text DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
|
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
INSERT INTO `claim_items` (`id`, `item_id`, `max_claim`, `one_per_char`) VALUES
|
|
||||||
(1, 1, 10, 0),
|
INSERT INTO `claim_items` (`id`, `item_id`, `max_claim`, `one_per_char`, `veteran_reward_time`, `comment`) VALUES
|
||||||
(2, 60606, 10, 0),
|
(1, 1, 10, 0, 0, NULL),
|
||||||
(3, 22461, 10, 0),
|
(2, 60606, 10, 0, 0, NULL),
|
||||||
(4, 20628, 10, 0),
|
(3, 22461, 10, 0, 0, NULL),
|
||||||
(5, 20614, 10, 0),
|
(4, 20628, 10, 0, 0, NULL),
|
||||||
(6, 47077, 10, 0);
|
(5, 20614, 10, 0, 0, NULL),
|
||||||
|
(6, 20612, 10, 0, 86400, '1 day'),
|
||||||
|
(7, 22513, 10, 0, 2630000, '1 month'),
|
||||||
|
(8, 22514, 10, 0, 604800, '1 week'),
|
||||||
|
(9, 22515, 10, 0, 31536000, '1 year'),
|
||||||
|
(10, 22516, 10, 0, 47340000, '18 month'),
|
||||||
|
(11, 22517, 10, 0, 63072000, '2 year'),
|
||||||
|
(12, 22518, 10, 0, 7890000, '3 month'),
|
||||||
|
(13, 22519, 10, 0, 94608000, '3 year'),
|
||||||
|
(14, 22520, 10, 0, 126144000, '4 year'),
|
||||||
|
(15, 22521, 10, 0, 157680000, '5 year'),
|
||||||
|
(16, 22522, 10, 0, 15780000, '6 month'),
|
||||||
|
(17, 22523, 10, 0, 189216000, '6 year'),
|
||||||
|
(18, 22524, 10, 0, 252288000, '8 year');
|
||||||
|
|
Loading…
Reference in a new issue