Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase maximum mail address length #50

Open
wants to merge 1 commit into
base: version2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
196 changes: 98 additions & 98 deletions echelon.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,157 +12,157 @@ SET FOREIGN_KEY_CHECKS=0;
-- Table structure for ech_blacklist
-- ----------------------------
DROP TABLE IF EXISTS `ech_blacklist`;
CREATE TABLE `ech_blacklist` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(24) NOT NULL,
`active` tinyint(4) DEFAULT NULL,
`reason` varchar(255) DEFAULT NULL,
`time_add` int(32) unsigned DEFAULT NULL,
`admin_id` smallint(6) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ip` (`ip`,`active`)
CREATE TABLE `ech_blacklist` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`ip` varchar(24) NOT NULL,
`active` tinyint(4) DEFAULT NULL,
`reason` varchar(255) DEFAULT NULL,
`time_add` int(32) unsigned DEFAULT NULL,
`admin_id` smallint(6) unsigned DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `ip` (`ip`,`active`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_config
-- ----------------------------
DROP TABLE IF EXISTS `ech_config`;
CREATE TABLE `ech_config` (
`id` smallint(6) NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
`value` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `i_config` (`name`,`value`)
CREATE TABLE `ech_config` (
`id` smallint(6) NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL,
`value` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
KEY `i_config` (`name`,`value`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_games
-- ----------------------------
DROP TABLE IF EXISTS `ech_games`;
CREATE TABLE `ech_games` (
`id` smallint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`game` varchar(255) NOT NULL,
`name_short` varchar(255) DEFAULT NULL,
`num_srvs` smallint(9) NOT NULL,
`db_host` varchar(255) NOT NULL,
`db_user` varchar(255) NOT NULL,
`db_pw` varchar(255) DEFAULT NULL,
`db_name` varchar(255) NOT NULL,
CREATE TABLE `ech_games` (
`id` smallint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`game` varchar(255) NOT NULL,
`name_short` varchar(255) DEFAULT NULL,
`num_srvs` smallint(9) NOT NULL,
`db_host` varchar(255) NOT NULL,
`db_user` varchar(255) NOT NULL,
`db_pw` varchar(255) DEFAULT NULL,
`db_name` varchar(255) NOT NULL,
`plugins` varchar(255) DEFAULT NULL,
`active` bool DEFAULT TRUE,
PRIMARY KEY (`id`),
KEY `i_games` (`name`,`num_srvs`)
`active` bool DEFAULT TRUE,
PRIMARY KEY (`id`),
KEY `i_games` (`name`,`num_srvs`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_groups
-- ----------------------------
DROP TABLE IF EXISTS `ech_groups`;
CREATE TABLE `ech_groups` (
`id` smallint(4) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`namep` varchar(255) DEFAULT NULL,
`premissions` varchar(512) NOT NULL,
PRIMARY KEY (`id`,`name`),
KEY `i_name` (`name`,`namep`)
CREATE TABLE `ech_groups` (
`id` smallint(4) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`namep` varchar(255) DEFAULT NULL,
`premissions` varchar(512) NOT NULL,
PRIMARY KEY (`id`,`name`),
KEY `i_name` (`name`,`namep`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_links
-- ----------------------------
DROP TABLE IF EXISTS `ech_links`;
CREATE TABLE `ech_links` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(255) NOT NULL,
`name` varchar(80) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `i_url` (`url`)
CREATE TABLE `ech_links` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`url` varchar(255) NOT NULL,
`name` varchar(80) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `i_url` (`url`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_logs
-- ----------------------------
DROP TABLE IF EXISTS `ech_logs`;
CREATE TABLE `ech_logs` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(64) DEFAULT NULL,
`msg` varchar(255) DEFAULT '',
`client_id` int(32) DEFAULT NULL,
`user_id` smallint(5) DEFAULT NULL,
`time_add` int(32) DEFAULT NULL,
`game_id` mediumint(10) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `i_logs` (`client_id`,`user_id`)
CREATE TABLE `ech_logs` (
`id` smallint(5) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(64) DEFAULT NULL,
`msg` varchar(255) DEFAULT '',
`client_id` int(32) DEFAULT NULL,
`user_id` smallint(5) DEFAULT NULL,
`time_add` int(32) DEFAULT NULL,
`game_id` mediumint(10) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `i_logs` (`client_id`,`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_permissions
-- ----------------------------
DROP TABLE IF EXISTS `ech_permissions`;
CREATE TABLE `ech_permissions` (
`id` mediumint(6) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`,`name`),
UNIQUE KEY `name` (`name`)
CREATE TABLE `ech_permissions` (
`id` mediumint(6) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`description` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`,`name`),
UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_servers
-- ----------------------------
DROP TABLE IF EXISTS `ech_servers`;
CREATE TABLE `ech_servers` (
`id` int(5) unsigned NOT NULL AUTO_INCREMENT,
`game` smallint(5) NOT NULL,
`name` varchar(100) NOT NULL,
`ip` varchar(15) NOT NULL,
`pb_active` tinyint(1) NOT NULL,
`rcon_pass` varchar(50) NOT NULL,
`rcon_ip` varchar(26) NOT NULL,
`rcon_port` int(5) NOT NULL,
PRIMARY KEY (`id`),
KEY `game` (`game`)
CREATE TABLE `ech_servers` (
`id` int(5) unsigned NOT NULL AUTO_INCREMENT,
`game` smallint(5) NOT NULL,
`name` varchar(100) NOT NULL,
`ip` varchar(15) NOT NULL,
`pb_active` tinyint(1) NOT NULL,
`rcon_pass` varchar(50) NOT NULL,
`rcon_ip` varchar(26) NOT NULL,
`rcon_port` int(5) NOT NULL,
PRIMARY KEY (`id`),
KEY `game` (`game`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_user_keys
-- ----------------------------
DROP TABLE IF EXISTS `ech_user_keys`;
CREATE TABLE `ech_user_keys` (
`reg_key` varchar(40) NOT NULL,
`ech_group` smallint(4) NOT NULL,
`admin_id` smallint(5) unsigned NOT NULL,
`comment` varchar(500) DEFAULT NULL,
`time_add` mediumint(24) unsigned DEFAULT NULL,
`email` varchar(160) NOT NULL,
`active` tinyint(4) NOT NULL,
PRIMARY KEY (`reg_key`),
KEY `i_regkey` (`active`,`email`)
CREATE TABLE `ech_user_keys` (
`reg_key` varchar(40) NOT NULL,
`ech_group` smallint(4) NOT NULL,
`admin_id` smallint(5) unsigned NOT NULL,
`comment` varchar(500) DEFAULT NULL,
`time_add` mediumint(24) unsigned DEFAULT NULL,
`email` varchar(160) NOT NULL,
`active` tinyint(4) NOT NULL,
PRIMARY KEY (`reg_key`),
KEY `i_regkey` (`active`,`email`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- ----------------------------
-- Table structure for ech_users
-- ----------------------------
DROP TABLE IF EXISTS `ech_users`;
CREATE TABLE `ech_users` (
`id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(32) NOT NULL,
`display` varchar(32) DEFAULT NULL,
`email` varchar(32) DEFAULT NULL,
`password` varchar(64) NOT NULL,
`salt` varchar(12) NOT NULL,
`ip` varchar(24) DEFAULT NULL,
`ech_group` smallint(4) unsigned NOT NULL DEFAULT '1',
`admin_id` smallint(6) unsigned NOT NULL DEFAULT '0',
`first_seen` int(24) DEFAULT NULL,
`last_seen` int(24) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `password` (`password`),
KEY `salt` (`salt`),
KEY `i_group` (`ech_group`)
CREATE TABLE `ech_users` (
`id` smallint(6) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(32) NOT NULL,
`display` varchar(32) DEFAULT NULL,
`email` varchar(64) DEFAULT NULL,
`password` varchar(64) NOT NULL,
`salt` varchar(12) NOT NULL,
`ip` varchar(24) DEFAULT NULL,
`ech_group` smallint(4) unsigned NOT NULL DEFAULT '1',
`admin_id` smallint(6) unsigned NOT NULL DEFAULT '0',
`first_seen` int(24) DEFAULT NULL,
`last_seen` int(24) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `password` (`password`),
KEY `salt` (`salt`),
KEY `i_group` (`ech_group`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;

-- ----------------------------
Expand All @@ -187,7 +187,7 @@ INSERT INTO `ech_config` VALUES ('16', 'reg_clan_tags', '');
INSERT INTO `ech_config` VALUES ('17', 'reg_connections', '50');
INSERT INTO `ech_config` VALUES ('18', 'reg_days', '7');
INSERT INTO `ech_config` VALUES ('19', 'self_reg', 'true');
INSERT INTO `ech_config` VALUES ('20', 'charset', 'utf-8');
INSERT INTO `ech_config` VALUES ('20', 'charset', 'utf-8');
INSERT INTO `ech_groups` VALUES ('1', 'visitor', 'Visitor', '1');
INSERT INTO `ech_groups` VALUES ('2', 'siteadmin', 'Site Admin', '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');
INSERT INTO `ech_groups` VALUES ('3', 'senioradmin', 'Senior Admin', '1,2,3,4,5,8,12,14,16,17,20,21,22,23,24');
Expand Down Expand Up @@ -225,4 +225,4 @@ INSERT INTO `ech_permissions` VALUES ('23', 'unban', 'Allows user to remove a B3
INSERT INTO `ech_permissions` VALUES ('24', 'edit_xlrstats', 'Allows user to edit a client\'s XLRStats information (hidden, fixed name)');
INSERT INTO `ech_permissions` VALUES ('25', 'ctime', 'Allows user to view CTime information');
INSERT INTO `ech_permissions` VALUES ('26', 'see_update_msg', 'Shows this user the Echelon needs updating message');
INSERT INTO `ech_permissions` VALUES ('27', 'chats_talk_back', 'Allows the user to talk back to the server using the Chats Plugin');
INSERT INTO `ech_permissions` VALUES ('27', 'chats_talk_back', 'Allows the user to talk back to the server using the Chats Plugin');