Advertisement
Guest User

Untitled

a guest
Jan 18th, 2016
773
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.43 KB | None | 0 0
  1. ALTER TABLE `accounts` ADD `page_access` int(11);
  2. ALTER TABLE `accounts` ADD `page_lastday` int(11);
  3. ALTER TABLE `accounts` ADD `email_new` varchar(255);
  4. ALTER TABLE `accounts` ADD `email_new_time` int(15);
  5. ALTER TABLE `accounts` ADD `rlname` varchar(255);
  6. ALTER TABLE `accounts` ADD `location` varchar(255);
  7. ALTER TABLE `accounts` ADD `created` int(16);
  8. ALTER TABLE `accounts` ADD `email_code` varchar(255);
  9. ALTER TABLE `accounts` ADD `next_email` int(11);
  10. ALTER TABLE `accounts` ADD `premium_points` int(11);
  11. ALTER TABLE `accounts` ADD `nickname` char(48);
  12. ALTER TABLE `accounts` ADD avatar char(48);
  13. ALTER TABLE `accounts` ADD about_me text;
  14. ALTER TABLE `accounts` CHANGE `key` `key` VARCHAR( 128 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT '';
  15. ALTER TABLE `players` ADD `old_name` varchar(255);
  16. ALTER TABLE `players` ADD `hide_char` int(11);
  17. ALTER TABLE `players` ADD `worldtransfer` int(11);
  18. ALTER TABLE `players` ADD `created` int(16);
  19. ALTER TABLE `players` ADD `nick_verify` int(11);
  20. ALTER TABLE `players` ADD `comment` text;
  21. UPDATE `players` SET `hide_char` = 0;
  22. UPDATE `accounts` SET `key` = '';
  23.  
  24. INSERT INTO `players` (`name`, `world_id`, `group_id`, `account_id`, `level`, `vocation`, `health`, `healthmax`, `experience`, `lookbody`, `lookfeet`, `lookhead`, `looklegs`, `looktype`, `lookaddons`, `maglevel`, `mana`, `manamax`, `manaspent`, `soul`, `town_id`, `posx`, `posy`, `posz`, `conditions`, `cap`, `sex`, `lastlogin`, `lastip`, `save`, `skull`, `skulltime`, `rank_id`, `guildnick`, `lastlogout`, `blessings`, `balance`, `stamina`, `direction`, `loss_experience`, `loss_mana`, `loss_skills`, `loss_containers`, `loss_items`, `premend`, `online`, `marriage`, `promotion`, `deleted`, `description`, `created`, `nick_verify`, `old_name`, `hide_char`, `worldtransfer`, `comment`) VALUES
  25. ('Goku', 0, 1, 1, 1, 1, 185, 185, 4200, 0, 0, 0, 0, 1, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  26. ('Vegeta', 0, 1, 1, 1, 8, 185, 185, 4200, 0, 0, 0, 0, 8, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  27. ('Kid Gohan', 0, 1, 1, 8, 15, 185, 185, 4200, 0, 0, 0, 0, 200, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  28. ('Trunks', 0, 1, 1, 1, 22, 185, 185, 4200, 0, 0, 0, 0, 353, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  29. ('Cell', 0, 1, 1, 1, 29, 185, 185, 4200, 0, 0, 0, 0, 60, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  30. ('Freeza', 0, 1, 1, 1, 36, 185, 185, 4200, 0, 0, 0, 0, 227, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  31. ('Brolly', 0, 1, 1, 1, 43, 185, 185, 4200, 0, 0, 0, 0, 360, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  32. ('Bardock', 0, 1, 1, 1, 50, 185, 185, 4200, 0, 0, 0, 0, 363, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  33. ('Buu', 0, 1, 1, 1, 57, 185, 185, 4200, 0, 0, 0, 0, 41, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  34. ('C16', 0, 1, 1, 1, 64, 185, 185, 4200, 0, 0, 0, 0, 165, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  35. ('C17', 0, 1, 1, 1, 71, 185, 185, 4200, 0, 0, 0, 0, 379, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  36. ('C18', 0, 1, 1, 1, 78, 185, 185, 4200, 0, 0, 0, 0, 158, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  37. ('Chibi Trunks', 0, 1, 1, 1, 85, 185, 185, 4200, 0, 0, 0, 0, 67, 1, 0, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  38. ('Cooler', 0, 1, 1, 1, 92, 185, 185, 4200, 0, 0, 0, 0, 382, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  39. ('Dendy', 0, 1, 1, 1, 99, 185, 185, 4200, 0, 0, 0, 0, 394, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  40. ('Piccolo', 0, 1, 1, 1, 106, 185, 185, 4200, 0, 0, 0, 0, 15, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  41. ('Goten', 0, 1, 1, 1, 112, 185, 185, 4200, 0, 0, 0, 0, 250, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.'),
  42. ('Tsuful', 0, 1, 1, 1, 120, 185, 185, 4200, 0, 0, 0, 0, 321, 0, 1, 235, 235, 0, 0, 1, 50, 50, 7, '', 440, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 201660000, 0, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, '', 0, 0, '', 0, 0, 'This player has no comment at this moment.');
  43.  
  44. CREATE TABLE IF NOT EXISTS `bugtracker` (
  45. `id` int(11) NOT NULL AUTO_INCREMENT,
  46. `category` int(3) NOT NULL,
  47. `time` int(11),
  48. `author` int(11) NOT NULL,
  49. `text` text,
  50. `title` varchar(120),
  51. `done` tinyint(3),
  52. `priority` tinyint(3),
  53. `closed` tinyint(1) DEFAULT '0',
  54. PRIMARY KEY (`id`),
  55. FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
  56. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  57.  
  58. CREATE TABLE IF NOT EXISTS `friends` (
  59. `id` int(11) NOT NULL AUTO_INCREMENT,
  60. `with` int(11),
  61. `friend` int(11),
  62. `time` int(11),
  63. `active` tinyint(1),
  64. PRIMARY KEY (`id`),
  65. FOREIGN KEY (`with`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
  66. FOREIGN KEY (`friend`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
  67. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  68.  
  69. CREATE TABLE IF NOT EXISTS `messages` (
  70. `id` int(11) NOT NULL AUTO_INCREMENT,
  71. `from` int(11),
  72. `to` int(11),
  73. `title` varchar(120),
  74. `text` tinytext,
  75. `time` int(11),
  76. `delete_from` tinyint(1),
  77. `delete_to` tinyint(1),
  78. `unread` tinyint(1),
  79. PRIMARY KEY (`id`),
  80. FOREIGN KEY (`from`) REFERENCES `accounts` (`id`) ON DELETE CASCADE,
  81. FOREIGN KEY (`to`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
  82. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  83.  
  84. CREATE TABLE IF NOT EXISTS `news` (
  85. `id` int(11) NOT NULL AUTO_INCREMENT,
  86. `title` varchar(150) DEFAULT '',
  87. `body` text,
  88. `time` int(11) DEFAULT '0',
  89. PRIMARY KEY (`id`)
  90. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  91.  
  92. CREATE TABLE IF NOT EXISTS `comments` (
  93. `id` int(11) NOT NULL AUTO_INCREMENT,
  94. `news_id` int(11),
  95. `body` text,
  96. `time` int(11) DEFAULT '0',
  97. `author` int(11) DEFAULT '0',
  98. PRIMARY KEY (`id`),
  99. FOREIGN KEY (`news_id`) REFERENCES `news` (`id`) ON DELETE CASCADE,
  100. FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
  101. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  102.  
  103. CREATE TABLE IF NOT EXISTS `forums` (
  104. `id` int(11) NOT NULL AUTO_INCREMENT,
  105. `name` varchar(120),
  106. `description` tinytext,
  107. `access` smallint(5) DEFAULT '1' COMMENT 'Min. access to see the board',
  108. `closed` tinyint(1),
  109. `moderators` tinytext,
  110. `order` int(6),
  111. `requireLogin` tinyint(1),
  112. PRIMARY KEY (`id`)
  113. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  114.  
  115. ALTER TABLE `forums` ADD `guild` int(11);
  116.  
  117. CREATE TABLE IF NOT EXISTS `threads` (
  118. `id` int(11) NOT NULL AUTO_INCREMENT,
  119. `name` varchar(120),
  120. `sticked` tinyint(1),
  121. `closed` tinyint(1),
  122. `author` varchar(64),
  123. `time` int(11),
  124. `board_id` int(11),
  125. PRIMARY KEY (`id`),
  126. FOREIGN KEY (`board_id`) REFERENCES `forums` (`id`) ON DELETE CASCADE
  127. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  128.  
  129. CREATE TABLE IF NOT EXISTS `posts` (
  130. `id` int(11) NOT NULL AUTO_INCREMENT,
  131. `title` varchar(120) ,
  132. `text` text,
  133. `time` int(11),
  134. `author` varchar(64),
  135. `board_id` int(11),
  136. `thread_id` int(11),
  137. PRIMARY KEY (`id`),
  138. FOREIGN KEY (`board_id`) REFERENCES `forums` (`id`) ON DELETE CASCADE,
  139. FOREIGN KEY (`thread_id`) REFERENCES `threads` (`id`) ON DELETE CASCADE
  140. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  141.  
  142. CREATE TABLE IF NOT EXISTS `videos` (
  143. `id` int(11) NOT NULL AUTO_INCREMENT,
  144. `author` int(11) ,
  145. `title` varchar(120),
  146. `description` tinytext,
  147. `youtube` varchar(45),
  148. `views` int(11),
  149. `time` int(11),
  150. PRIMARY KEY (`id`),
  151. FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
  152. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  153.  
  154.  
  155. CREATE TABLE IF NOT EXISTS `video_comments` (
  156. `id` int(10) NOT NULL AUTO_INCREMENT,
  157. `author` int(11),
  158. `video` int(11),
  159. `time` int(11),
  160. `text` tinytext,
  161. PRIMARY KEY (`id`),
  162. FOREIGN KEY (`video`) REFERENCES `videos` (`id`) ON DELETE CASCADE,
  163. FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
  164. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  165.  
  166. CREATE TABLE IF NOT EXISTS `poll` (
  167. `id` int(11) NOT NULL AUTO_INCREMENT,
  168. `question` varchar(150) ,
  169. `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  170. `date_start` datetime ,
  171. `date_end` datetime ,
  172. `status` tinyint(1) NOT NULL DEFAULT '0',
  173. PRIMARY KEY (`id`),
  174. KEY `question` (`question`)
  175. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  176.  
  177. CREATE TABLE IF NOT EXISTS `poll_answer` (
  178. `id` int(11) NOT NULL AUTO_INCREMENT,
  179. `poll_id` int(11) NOT NULL,
  180. `answer` varchar(150) ,
  181. PRIMARY KEY (`id`),
  182. FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`) ON DELETE CASCADE
  183. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
  184.  
  185. CREATE TABLE IF NOT EXISTS `poll_votes` (
  186. `id` int(11) NOT NULL AUTO_INCREMENT,
  187. `answer_id` int(11) ,
  188. `poll_id` int(11) ,
  189. `account_id` int(11) NOT NULL,
  190. PRIMARY KEY (`id`),
  191. FOREIGN KEY (`answer_id`) REFERENCES `poll_answer` (`id`) ON DELETE CASCADE,
  192. FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`) ON DELETE CASCADE,
  193. FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
  194. ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement