[7867] Change default IP in account and banned_ip tables

As IP of 0.0.0.0 is, unlike 127.0.0.1, more clearly recognized as invalid.

Signed-off-by: freghar <compmancz@gmail.com>
This commit is contained in:
freghar 2009-05-21 18:09:00 +02:00
parent 61d1829431
commit 34ee1cffa2
3 changed files with 5 additions and 3 deletions

View file

@ -50,7 +50,7 @@ CREATE TABLE `account` (
`s` longtext, `s` longtext,
`email` text, `email` text,
`joindate` timestamp NOT NULL default CURRENT_TIMESTAMP, `joindate` timestamp NOT NULL default CURRENT_TIMESTAMP,
`last_ip` varchar(30) NOT NULL default '127.0.0.1', `last_ip` varchar(30) NOT NULL default '0.0.0.0',
`failed_logins` int(11) unsigned NOT NULL default '0', `failed_logins` int(11) unsigned NOT NULL default '0',
`locked` tinyint(3) unsigned NOT NULL default '0', `locked` tinyint(3) unsigned NOT NULL default '0',
`last_login` timestamp NOT NULL default '0000-00-00 00:00:00', `last_login` timestamp NOT NULL default '0000-00-00 00:00:00',
@ -107,7 +107,7 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `ip_banned`; DROP TABLE IF EXISTS `ip_banned`;
CREATE TABLE `ip_banned` ( CREATE TABLE `ip_banned` (
`ip` varchar(32) NOT NULL default '127.0.0.1', `ip` varchar(32) NOT NULL default '0.0.0.0',
`bandate` bigint(40) NOT NULL, `bandate` bigint(40) NOT NULL,
`unbandate` bigint(40) NOT NULL, `unbandate` bigint(40) NOT NULL,
`bannedby` varchar(50) NOT NULL default '[Console]', `bannedby` varchar(50) NOT NULL default '[Console]',

View file

@ -0,0 +1,2 @@
ALTER TABLE `account` CHANGE COLUMN `last_ip` `last_ip` varchar(30) NOT NULL default '0.0.0.0';
ALTER TABLE `ip_banned` CHANGE COLUMN `ip` `ip` varchar(32) NOT NULL default '0.0.0.0';

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7866" #define REVISION_NR "7867"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__