diff options
author | bbaetz%student.usyd.edu.au <> | 2002-03-16 14:03:09 +0000 |
---|---|---|
committer | bbaetz%student.usyd.edu.au <> | 2002-03-16 14:03:09 +0000 |
commit | 2b22c65aae9bbb3aa43dd5e4d8a813ab60ae3b0f (patch) | |
tree | f86d8180ae5d1c283a0cf2c981804b6d79d9f2ef /checksetup.pl | |
parent | 9ff5677ed0e31bbd9ee290d19833d57fcea0a00d (diff) | |
download | bugs-2b22c65aae9bbb3aa43dd5e4d8a813ab60ae3b0f.tar bugs-2b22c65aae9bbb3aa43dd5e4d8a813ab60ae3b0f.tar.gz bugs-2b22c65aae9bbb3aa43dd5e4d8a813ab60ae3b0f.tar.bz2 bugs-2b22c65aae9bbb3aa43dd5e4d8a813ab60ae3b0f.tar.xz bugs-2b22c65aae9bbb3aa43dd5e4d8a813ab60ae3b0f.zip |
Bug 129466 - use IP addr (not hostname) in logincookies table
r=gerv, justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl index ab8b723fa..ba5d1e087 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1155,11 +1155,10 @@ $table{groups} = unique(bit), unique(name)'; - $table{logincookies} = 'cookie mediumint not null auto_increment primary key, userid mediumint not null, - hostname varchar(128), + ipaddr varchar(40) NOT NULL, lastused timestamp, index(lastused)'; @@ -2706,6 +2705,17 @@ if (GetFieldDef("bugs","qacontact_accessible")) { DropField("bugs", "assignee_accessible"); } +# 2002-03-15 bbaetz@student.usyd.edu.au - bug 129466 +# Use the ip, not the hostname, in the logincookies table +if (GetFieldDef("logincookies", "hostname")) { + # We've changed what we match against, so all entries are now invalid + $dbh->do("DELETE FROM logincookies"); + + # Now update the logincookies schema + DropField("logincookies", "hostname"); + AddField("logincookies", "ipaddr", "varchar(40) NOT NULL"); +} + # If you had to change the --TABLE-- definition in any way, then add your # differential change code *** A B O V E *** this comment. # |