viewing paste 3CeAM-->Hercules main.sql | SQL

Posted on the
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
-- Working as of April 16th, 2013
 
--
-- Table changes for table `auction`
--
 
ALTER TABLE `auction` ADD `unique_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `card3` ;
 
--
-- Table changes for table `cart_inventory`
--
 
ALTER TABLE `cart_inventory` ADD `unique_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `expire_time` ;
 
--
-- Table changes for table `char`
--
 
ALTER TABLE `char` ADD `slotchange` SMALLINT( 3 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `delete_date` ,
ADD `char_opt` INT( 11 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `slotchange`,
CHANGE `weapon` `weapon` SMALLINT( 6 ) UNSIGNED NOT NULL DEFAULT '0' ,
DROP INDEX `name` ,
ADD UNIQUE `name_key` ( `name` ) ;
 
--
-- Table changes for table `elemental`
--
 
ALTER TABLE `elemental` ADD `atk1` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT '0' AFTER `max_sp`,
ADD `atk2` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT '0' AFTER `atk1`,
ADD `matk` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT '0' AFTER `atk2`,
ADD `aspd` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0' AFTER `matk`,
ADD `def` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0' AFTER `aspd`,
ADD `mdef` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0' AFTER `def`,
ADD `flee` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0' AFTER `mdef`,
ADD `hit` SMALLINT(4) UNSIGNED NOT NULL DEFAULT '0' AFTER `flee`,
DROP `str`,
DROP `agi`,
DROP `vit`,
DROP `int`,
DROP `dex`,
DROP `luk`;
 
--
-- Table changes for table `hotkey`
--
 
ALTER TABLE `hotkey` DROP INDEX `char_id`;
 
--
-- Table changes for table `global_reg_value`
--
 
ALTER TABLE `global_reg_value` CHANGE `type` `type` TINYINT( 1 ) NOT NULL DEFAULT '3',
DROP INDEX `char_id` ;
 
--
-- Table changes for table `guild_position`
--
 
ALTER TABLE `guild_position` DROP INDEX `guild_id` ;
 
--
-- Table changes for table `guild_storage`
--
 
ALTER TABLE `guild_storage` ADD `unique_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `expire_time` ;
 
--
-- Table changes for table `homunculus`
--
 
ALTER TABLE `homunculus` ADD `prev_class` MEDIUMINT( 9 ) NOT NULL DEFAULT '0' AFTER `class` ;
 
--
-- Table changes for table `inventory` 
--
 
ALTER TABLE `inventory` ADD `favorite` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0',
ADD `unique_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `favorite` ;
 
--
-- Table changes for table `login`
--
 
ALTER TABLE `login` CHANGE `level` `group_id` TINYINT( 3 ) NOT NULL DEFAULT '0',
ADD `character_slots` TINYINT( 3 ) UNSIGNED NOT NULL DEFAULT '0',
ADD `pincode` VARCHAR(4) NOT NULL DEFAULT '',
ADD `pincode_change` INT(11) UNSIGNED NOT NULL DEFAULT '0';
 
--
-- Table changes for table `mail`
--
 
ALTER TABLE `mail` ADD `unique_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `card3` ;
 
--
-- Table changes for table `skill`
--
 
ALTER TABLE `skill` ADD `flag` TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `lv` ,
DROP INDEX `char_id` ;
 
--
-- Table drop for unused table `skillcooldown`.
--
 
DROP TABLE `skillcooldown` ;
 
--
-- Table changes for table `skill_homunculus`
--
 
ALTER TABLE `skill_homunculus` DROP INDEX `homun_id`;
 
--
-- Table structure for new table `sql_updates`
--
 
CREATE TABLE IF NOT EXISTS `sql_updates` (
  `timestamp` INT(11) UNSIGNED NOT NULL,
  `ignored` enum('Yes','No') NOT NULL DEFAULT 'No',
  PRIMARY KEY (`timestamp`)
) ENGINE=MyISAM;
 
-- Existent updates to enter
INSERT INTO `sql_updates` (`timestamp`) VALUES (1360858500);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1360951560);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1362445531);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1362528000);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1362794218);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1364409316);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1366075474);
INSERT INTO `sql_updates` (`timestamp`) VALUES (1366078541);
 
 
--
-- Table changes for table `storage`
--
 
ALTER TABLE `storage` ADD `unique_id` BIGINT( 20 ) UNSIGNED NOT NULL DEFAULT '0' AFTER `expire_time` ;
 
--
-- Table structure for new table `interreg`
--
 
CREATE TABLE IF NOT EXISTS `interreg` (
  `varname` VARCHAR(11) NOT NULL,
  `value` VARCHAR(20) NOT NULL,
   PRIMARY KEY (`varname`)
) ENGINE=InnoDB;
INSERT INTO `interreg` (`varname`, `value`) VALUES
('unique_id', '0');
Viewed 1677 times, submitted by jaBote.