Difference between revisions of "Attributes (Database Table)"
From SWGANH Wiki
(→Related Tags) |
(→Table Create Script) |
||
Line 36: | Line 36: | ||
==Table Create Script== | ==Table Create Script== | ||
<pre> | <pre> | ||
− | DROP TABLE IF EXISTS | + | DROP TABLE IF EXISTS `attributes`; |
− | CREATE TABLE | + | CREATE TABLE `attributes` ( |
− | `id` int(11) unsigned NOT NULL | + | `id` int(11) unsigned NOT NULL AUTO_INCREMENT, |
− | `name` char(255) | + | `name` char(255) DEFAULT NULL, |
− | `internal` tinyint(3) unsigned NOT NULL | + | `internal` tinyint(3) unsigned NOT NULL DEFAULT '0', |
`attribute_internal_description` text NOT NULL, | `attribute_internal_description` text NOT NULL, | ||
− | PRIMARY KEY | + | PRIMARY KEY (`id`), |
UNIQUE KEY `pk_attributes_name` (`name`) | UNIQUE KEY `pk_attributes_name` (`name`) | ||
− | ) ENGINE=InnoDB AUTO_INCREMENT= | + | ) ENGINE=InnoDB AUTO_INCREMENT=1289 DEFAULT CHARSET=utf8; |
</pre> | </pre> | ||
Revision as of 12:50, 26 December 2008
Database Table - Attributes
SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.
Table Create Script
DROP TABLE IF EXISTS `attributes`; CREATE TABLE `attributes` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` char(255) DEFAULT NULL, `internal` tinyint(3) unsigned NOT NULL DEFAULT '0', `attribute_internal_description` text NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `pk_attributes_name` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=1289 DEFAULT CHARSET=utf8;
Table Describe
mysql> desc attributes; +--------------------------------+---------------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +--------------------------------+---------------------+------+-----+---------+----------------+ | id | int(11) unsigned | NO | PRI | NULL | auto_increment | | name | char(255) | YES | UNI | NULL | | | internal | tinyint(3) unsigned | NO | | 0 | | | attribute_internal_description | text | NO | | NULL | | +--------------------------------+---------------------+------+-----+---------+----------------+ 4 rows in set (0.00 sec)