Skip to content
Snippets Groups Projects
Commit 3ccf8e23 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: Also dropping the old userIP field in accounts table.

parent e203c9f7
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@ CREATE TABLE IF NOT EXISTS `accounts` (
`accessLevel` TINYINT NOT NULL DEFAULT 0,
`lastIP` CHAR(15) NULL DEFAULT NULL,
`lastServer` TINYINT DEFAULT 1,
`userIP` char(15) DEFAULT NULL,
`pcIp` char(15) DEFAULT NULL,
`hop1` char(15) DEFAULT NULL,
`hop2` char(15) DEFAULT NULL,
......
INSERT INTO accounts_ipauth (`login`, `ip`, `type`) (SELECT login, userIP, 'allow' FROM accounts WHERE userIP IS NOT NULL);
\ No newline at end of file
INSERT INTO accounts_ipauth (`login`, `ip`, `type`) (SELECT login, userIP, 'allow' FROM accounts WHERE userIP IS NOT NULL);
ALTER TABLE accounts DROP userIP;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment