mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[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:
parent
61d1829431
commit
34ee1cffa2
3 changed files with 5 additions and 3 deletions
|
|
@ -50,7 +50,7 @@ CREATE TABLE `account` (
|
|||
`s` longtext,
|
||||
`email` text,
|
||||
`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',
|
||||
`locked` tinyint(3) unsigned NOT NULL default '0',
|
||||
`last_login` timestamp NOT NULL default '0000-00-00 00:00:00',
|
||||
|
|
@ -107,7 +107,7 @@ UNLOCK TABLES;
|
|||
|
||||
DROP TABLE IF EXISTS `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,
|
||||
`unbandate` bigint(40) NOT NULL,
|
||||
`bannedby` varchar(50) NOT NULL default '[Console]',
|
||||
|
|
|
|||
2
sql/updates/7867_01_realmd_account.sql
Normal file
2
sql/updates/7867_01_realmd_account.sql
Normal 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';
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7866"
|
||||
#define REVISION_NR "7867"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue