summaryrefslogtreecommitdiff
path: root/sql-files/upgrade_svn_questlog.sql
blob: 2e19859881144bf855f3f9fef7e1baba929fadd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--
-- Table structure for table `questlog`
--

CREATE TABLE IF NOT EXISTS `questlog` (
  `char_id` int(11) unsigned NOT NULL default '0',
  `quest_id` int(10) unsigned NOT NULL,
  `state` enum('2','1','0') NOT NULL default '0',
  `time` int(11) unsigned NOT NULL default '0',
  `mob1` mediumint(9) unsigned NOT NULL default '0',
  `count1` mediumint(8) unsigned NOT NULL default '0',
  `mob2` mediumint(9) unsigned NOT NULL default '0',
  `count2` mediumint(8) unsigned NOT NULL default '0',
  `mob3` mediumint(9) unsigned NOT NULL default '0',
  `count3` mediumint(8) unsigned NOT NULL default '0',
  PRIMARY KEY  USING BTREE (`char_id`,`quest_id`)
) ENGINE=MyISAM;

DROP TABLE `quest_objective`;
DROP TABLE `quest`;
--
-- Table structure for table `questlog`
--

CREATE TABLE IF NOT EXISTS `questlog` (
  `char_id` int(11) unsigned NOT NULL default '0',
  `quest_id` int(10) unsigned NOT NULL,
  `state` enum('2','1','0') NOT NULL default '0',
  `time` int(11) unsigned NOT NULL default '0',
  `mob1` mediumint(9) unsigned NOT NULL default '0',
  `count1` mediumint(8) unsigned NOT NULL default '0',
  `mob2` mediumint(9) unsigned NOT NULL default '0',
  `count2` mediumint(8) unsigned NOT NULL default '0',
  `mob3` mediumint(9) unsigned NOT NULL default '0',
  `count3` mediumint(8) unsigned NOT NULL default '0',
  PRIMARY KEY  USING BTREE (`char_id`,`quest_id`)
) ENGINE=MyISAM;

DROP TABLE `quest_objective`;
DROP TABLE `quest`;