[Ascent] DB Updates

Status
Not open for further replies.
Joined
Feb 26, 2007
Messages
641
Reaction score
261
Here's a overview of the updates in the ascent database structure.

Code:
alter table mailbox add column external_attached_item_guid bigint(20) not null default 0 after attached_item_guid;
Code:
alter table accounts add column forceLanguage varchar(5) not null default "enUS";
Code:
CREATE TABLE `playeritems_external` (
  `ownerguid` int(10) unsigned NOT NULL DEFAULT '0',
  `guid` bigint(20) unsigned NOT NULL DEFAULT '0',
  `entry` int(10) unsigned NOT NULL DEFAULT '0',
  `creator` int(10) unsigned NOT NULL DEFAULT '0',
  `count` int(10) unsigned NOT NULL DEFAULT '0',
  `charges` int(10) unsigned NOT NULL DEFAULT '0',
  `flags` int(10) unsigned NOT NULL DEFAULT '0',
  `randomprop` int(10) unsigned NOT NULL DEFAULT '0',
  `randomsuffix` int(30) NOT NULL,
  `itemtext` int(10) unsigned NOT NULL DEFAULT '0',
  `durability` int(10) unsigned NOT NULL DEFAULT '0',
  `containerslot` int(11) DEFAULT '-1' COMMENT '',
  `slot` tinyint(4) NOT NULL DEFAULT '0',
  `enchantments` longtext COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`guid`),
  UNIQUE KEY `guid` (`guid`),
  KEY `ownerguid` (`ownerguid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Code:
DROP TABLE IF EXISTS `creature_names_localized`;
CREATE TABLE `creature_names_localized` (
`id` int(30) unsigned NOT NULL,
`language_code` varchar(5) NOT NULL,
`name` varchar(100) NOT NULL,
`subname` varchar(100) NOT NULL,
PRIMARY KEY (`id`,`language_code`),
KEY `lol` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Code:
DROP TABLE IF EXISTS `gameobject_names_localized`;
CREATE TABLE `gameobject_names_localized` (
`entry` int(30) NOT NULL,
`language_code` varchar(5) NOT NULL,
`name` varchar(100) NOT NULL,
PRIMARY KEY (`entry`,`language_code`),
KEY `lol` (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Code:
DROP TABLE IF EXISTS `itempages_localized`;
CREATE TABLE `itempages_localized` (
  `entry` int(30) NOT NULL,
  `language_code` varchar(5) NOT NULL,
  `text` text NOT NULL,
  PRIMARY KEY (`entry`,`language_code`),
  KEY `a` (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Code:
DROP TABLE IF EXISTS `items_localized`;
CREATE TABLE `items_localized` (
  `entry` int(30) NOT NULL,
  `language_code` varchar(5) NOT NULL,
  `name` varchar(100) NOT NULL,
  `description` varchar(100) NOT NULL,
  PRIMARY KEY (`entry`,`language_code`),
  KEY `lol` (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

Code:
DROP TABLE IF EXISTS `npc_text_localized`;
CREATE TABLE `npc_text_localized` (
  `entry` int(30) NOT NULL,
  `language_code` varchar(5) NOT NULL,
  `text0` varchar(200) NOT NULL,
  `text0_1` varchar(200) NOT NULL,
  `text1` varchar(200) NOT NULL,
  `text1_1` varchar(200) NOT NULL,
  `text2` varchar(200) NOT NULL,
  `text2_1` varchar(200) NOT NULL,
  `text3` varchar(200) NOT NULL,
  `text3_1` varchar(200) NOT NULL,
  `text4` varchar(200) NOT NULL,
  `text4_1` varchar(200) NOT NULL,
  `text5` varchar(200) NOT NULL,
  `text5_1` varchar(200) NOT NULL,
  `text6` varchar(200) NOT NULL,
  `text6_1` varchar(200) NOT NULL,
  `text7` varchar(200) NOT NULL,
  `text7_1` varchar(200) NOT NULL,
  PRIMARY KEY (`entry`,`language_code`),
  KEY `lol` (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Code:
DROP TABLE IF EXISTS `quests_localized`;
CREATE TABLE `quests_localized` (
  `entry` int(30) NOT NULL,
  `language_code` varchar(5) NOT NULL,
  `Title` text NOT NULL,
  `Details` text NOT NULL,
  `Objectives` text NOT NULL,
  `CompletionText` text NOT NULL,
  `IncompleteText` text NOT NULL,
  `EndText` text NOT NULL,
  `ObjectiveText1` text NOT NULL,
  `ObjectiveText2` text NOT NULL,
  `ObjectiveText3` text NOT NULL,
  `ObjectiveText4` text NOT NULL,
  PRIMARY KEY (`entry`,`language_code`),
  KEY `lol` (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
you should let ppl know what revisions they are for, as if you run an older version of ascent, you won't need these updates.
revision 2068 +
Code:
mailbox and playeritems_external sql's
revision 2074 +
Code:
creature_names_localized, gameobject_names_localized, itempages_localized, items_localized, npc_text_localized, and quests_localized
revision 2075 +
Code:
accounts
 
Gmaze so my ascent core dosent accept acc i just import that sql and its all good?
Code:
alter table accounts add column forceLanguage varchar(5) not null default "enUS";
 
Status
Not open for further replies.
Back