Re: Ошибки
Добавлено: 19 авг 2011, 17:03
вот структура моя
Код: Выделить всё
--
-- Структура таблицы `sn_users`
--
CREATE TABLE IF NOT EXISTS `sn_users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(64) NOT NULL DEFAULT '',
`password` varchar(64) NOT NULL DEFAULT '',
`email` varchar(64) NOT NULL DEFAULT '',
`email_2` varchar(64) NOT NULL DEFAULT '',
`lang` varchar(8) NOT NULL DEFAULT 'ru',
`authlevel` tinyint(4) NOT NULL DEFAULT '0',
`sex` char(1) DEFAULT NULL,
`avatar` varchar(255) NOT NULL DEFAULT '',
`sign` mediumtext,
`id_planet` int(11) NOT NULL DEFAULT '0',
`galaxy` int(11) NOT NULL DEFAULT '0',
`system` int(11) NOT NULL DEFAULT '0',
`planet` int(11) NOT NULL DEFAULT '0',
`current_planet` int(11) NOT NULL DEFAULT '0',
`user_lastip` varchar(250) DEFAULT NULL COMMENT 'User last IP',
`user_agent` mediumtext NOT NULL,
`register_time` int(11) NOT NULL DEFAULT '0',
`onlinetime` int(11) NOT NULL DEFAULT '0',
`dpath` varchar(255) NOT NULL DEFAULT '',
`design` tinyint(4) NOT NULL DEFAULT '1',
`noipcheck` tinyint(4) NOT NULL DEFAULT '1',
`planet_sort` tinyint(1) NOT NULL DEFAULT '0',
`planet_sort_order` tinyint(1) NOT NULL DEFAULT '0',
`spio_anz` tinyint(4) NOT NULL DEFAULT '1',
`settings_tooltiptime` tinyint(4) NOT NULL DEFAULT '5',
`settings_fleetactions` tinyint(4) NOT NULL DEFAULT '0',
`settings_allylogo` tinyint(4) NOT NULL DEFAULT '0',
`settings_esp` tinyint(4) NOT NULL DEFAULT '1',
`settings_wri` tinyint(4) NOT NULL DEFAULT '1',
`settings_bud` tinyint(4) NOT NULL DEFAULT '1',
`settings_mis` tinyint(4) NOT NULL DEFAULT '1',
`settings_rep` tinyint(4) NOT NULL DEFAULT '0',
`db_deaktjava` tinyint(4) NOT NULL DEFAULT '0',
`new_message` int(11) NOT NULL DEFAULT '0',
`b_tech_planet` int(11) NOT NULL DEFAULT '0',
`spy_tech` int(11) NOT NULL DEFAULT '0',
`computer_tech` int(11) NOT NULL DEFAULT '0',
`military_tech` int(11) NOT NULL DEFAULT '0',
`defence_tech` int(11) NOT NULL DEFAULT '0',
`shield_tech` int(11) NOT NULL DEFAULT '0',
`energy_tech` int(11) NOT NULL DEFAULT '0',
`hyperspace_tech` int(11) NOT NULL DEFAULT '0',
`combustion_tech` int(11) NOT NULL DEFAULT '0',
`impulse_motor_tech` int(11) NOT NULL DEFAULT '0',
`hyperspace_motor_tech` int(11) NOT NULL DEFAULT '0',
`laser_tech` int(11) NOT NULL DEFAULT '0',
`ionic_tech` int(11) NOT NULL DEFAULT '0',
`buster_tech` int(11) NOT NULL DEFAULT '0',
`intergalactic_tech` int(11) NOT NULL DEFAULT '0',
`expedition_tech` int(11) NOT NULL DEFAULT '0',
`colonisation_tech` int(11) NOT NULL DEFAULT '0',
`graviton_tech` int(11) NOT NULL DEFAULT '0',
`ally_id` bigint(20) unsigned DEFAULT NULL,
`ally_name` varchar(32) DEFAULT NULL,
`ally_register_time` int(11) NOT NULL DEFAULT '0',
`ally_rank_id` int(11) NOT NULL DEFAULT '0',
`kolorminus` varchar(11) NOT NULL DEFAULT 'red',
`kolorplus` varchar(11) NOT NULL DEFAULT '#00FF00',
`kolorpoziom` varchar(11) NOT NULL DEFAULT 'yellow',
`rpg_geologue` int(11) NOT NULL DEFAULT '0',
`rpg_amiral` int(11) NOT NULL DEFAULT '0',
`rpg_ingenieur` int(11) NOT NULL DEFAULT '0',
`rpg_technocrate` int(11) NOT NULL DEFAULT '0',
`rpg_espion` int(11) NOT NULL DEFAULT '0',
`rpg_constructeur` int(11) NOT NULL DEFAULT '0',
`rpg_scientifique` int(11) NOT NULL DEFAULT '0',
`rpg_commandant` int(11) NOT NULL DEFAULT '0',
`dark_matter` int(11) DEFAULT '0',
`rpg_stockeur` int(11) NOT NULL DEFAULT '0',
`rpg_defenseur` int(11) NOT NULL DEFAULT '0',
`rpg_destructeur` int(11) NOT NULL DEFAULT '0',
`rpg_general` int(11) NOT NULL DEFAULT '0',
`rpg_bunker` int(11) NOT NULL DEFAULT '0',
`rpg_raideur` int(11) NOT NULL DEFAULT '0',
`rpg_empereur` int(11) NOT NULL DEFAULT '0',
`lvl_minier` int(11) NOT NULL DEFAULT '1',
`lvl_raid` int(11) NOT NULL DEFAULT '1',
`xpraid` int(11) NOT NULL DEFAULT '0',
`xpminier` int(11) NOT NULL DEFAULT '0',
`raids` bigint(20) NOT NULL DEFAULT '0',
`raidsloose` bigint(20) NOT NULL DEFAULT '0',
`raidswin` bigint(20) NOT NULL DEFAULT '0',
`p_infligees` bigint(20) NOT NULL DEFAULT '0',
`mnl_alliance` int(11) NOT NULL DEFAULT '0',
`mnl_joueur` int(11) NOT NULL DEFAULT '0',
`mnl_attaque` int(11) NOT NULL DEFAULT '0',
`mnl_spy` int(11) NOT NULL DEFAULT '0',
`mnl_exploit` int(11) NOT NULL DEFAULT '0',
`mnl_transport` int(11) NOT NULL DEFAULT '0',
`mnl_expedition` int(11) NOT NULL DEFAULT '0',
`mnl_buildlist` int(11) NOT NULL DEFAULT '0',
`msg_admin` bigint(11) unsigned DEFAULT '0',
`bana` int(11) DEFAULT NULL,
`deltime` int(11) NOT NULL DEFAULT '0',
`deleteme` int(11) NOT NULL DEFAULT '0',
`banaday` int(11) DEFAULT NULL,
`options` mediumtext COMMENT 'Packed user options',
`news_lastread` int(11) NOT NULL DEFAULT '0' COMMENT 'News last read tag',
`user_proxy` varchar(250) NOT NULL DEFAULT '' COMMENT 'User proxy (if any)',
`vacation` int(11) NOT NULL DEFAULT '0' COMMENT 'Time when user can leave vacation mode',
PRIMARY KEY (`id`),
UNIQUE KEY `i_username` (`username`),
UNIQUE KEY `i_register_time` (`register_time`),
UNIQUE KEY `i_ally_online` (`ally_id`,`onlinetime`),
KEY `i_ally_id` (`ally_id`),
KEY `i_ally_name` (`ally_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=146 ;