Skip to content

Commit

Permalink
Added planet_details table
Browse files Browse the repository at this point in the history
Added table to store historical chronology of a planet such as: first
esploration, first colonization and so on.
  • Loading branch information
kirirur committed Oct 13, 2014
1 parent c3421a6 commit b6b92e1
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions stfc.sql
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,38 @@ CREATE TABLE IF NOT EXISTS `planets` (
--


-- --------------------------------------------------------

--
-- Table structure for table `planet_details`
--

CREATE TABLE IF NOT EXISTS `planet_details` (
`id` int(10) unsigned NOT NULL auto_increment,
`planet_id` smallint(8) unsigned NOT NULL default '0',
`planet_type` char(1) default NULL,
`system_id` smallint(5) unsigned NOT NULL default '0',
`user_id` mediumint(8) unsigned NOT NULL default '0',
`alliance_id` smallint(5) unsigned NOT NULL default '0',
`source_uid` mediumint(8) unsigned NOT NULL default '0',
`source_aid` smallint(5) unsigned NOT NULL default '0',
`timestamp` int(10) unsigned NOT NULL default '0',
`log_code` smallint(5) unsigned NOT NULL default '0',
`ship_name` varchar(50) NOT NULL default '',
`survey_1` tinyint(1) unsigned NOT NULL default '0',
`survey_2` tinyint(1) unsigned NOT NULL default '0',
`survey_3` tinyint(1) unsigned NOT NULL default '0',
`defeat_uid` mediumint(8) unsigned NOT NULL default '0',
`defeat_aid` smallint(5) unsigned NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `Events` (`planet_id`,`log_code`)
) ENGINE=MyISAM default CHARSET=latin1 AUTO_INCREMENT=1 COMMENT='Historical chronology of the planet';

--
-- Dumping data for table `planets`
--


-- --------------------------------------------------------

--
Expand Down

0 comments on commit b6b92e1

Please sign in to comment.