raw_achievements_fixes.sql 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. DROP TABLE IF EXISTS `raw_achievements`;
  2. CREATE TABLE `raw_achievements` (
  3. `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  4. `achievement_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  5. `title` VARCHAR(50) COLLATE latin1_general_ci NOT NULL,
  6. `uncompleted_text` VARCHAR(255) COLLATE latin1_general_ci DEFAULT NULL,
  7. `completed_text` VARCHAR(255) COLLATE latin1_general_ci DEFAULT NULL,
  8. `category` VARCHAR(50) COLLATE latin1_general_ci DEFAULT NULL,
  9. `expansion` VARCHAR(50) COLLATE latin1_general_ci DEFAULT NULL,
  10. `icon` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
  11. `point_value` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  12. `qty_req` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  13. `hide_achievement` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0',
  14. `unknown3a` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  15. `unknown3b` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  16. `data_version` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0',
  17. `log_file` VARCHAR(250) COLLATE latin1_general_ci NOT NULL,
  18. PRIMARY KEY (`id`),
  19. UNIQUE KEY `id` (`achievement_id`,`title`)
  20. ) ENGINE=MYISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  21. DROP TABLE IF EXISTS `raw_achievements_requirements`;
  22. CREATE TABLE `raw_achievements_requirements` (
  23. `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  24. `achievement_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  25. `name` VARCHAR(250) COLLATE latin1_general_ci DEFAULT NULL,
  26. `qty_req` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  27. PRIMARY KEY (`id`),
  28. UNIQUE KEY `NewIndex` (`name`)
  29. ) ENGINE=MYISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  30. DROP TABLE IF EXISTS `raw_achievements_rewards`;
  31. CREATE TABLE `raw_achievements_rewards` (
  32. `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  33. `achievement_id` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  34. `reward` VARCHAR(250) COLLATE latin1_general_ci DEFAULT '"',
  35. PRIMARY KEY (`id`),
  36. UNIQUE KEY `id` (`achievement_id`,`reward`)
  37. ) ENGINE=MYISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;