Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
9855627f
Commit
9855627f
authored
Dec 20, 2006
by
Leigh B. Stoller
Browse files
Change the login table to use the uid_idx field, but also map from the
uid_idx to the uid for compatability with unchanged code.
parent
f3ad18f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
9855627f
...
...
@@ -1332,13 +1332,15 @@ CREATE TABLE log (
--
CREATE
TABLE
login
(
uid_idx
mediumint
(
8
)
unsigned
NOT
NULL
default
'0'
,
uid
varchar
(
10
)
NOT
NULL
default
''
,
hashkey
varchar
(
64
)
NOT
NULL
default
''
,
hashhash
varchar
(
64
)
NOT
NULL
default
''
,
timeout
varchar
(
10
)
NOT
NULL
default
''
,
adminon
tinyint
(
1
)
NOT
NULL
default
'0'
,
PRIMARY
KEY
(
uid
,
hashkey
),
UNIQUE
KEY
hashhash
(
uid
,
hashhash
)
PRIMARY
KEY
(
uid_idx
,
hashkey
),
UNIQUE
KEY
hashhash
(
uid_idx
,
hashhash
)
UNIQUE
KEY
uidkey
(
uid
,
hashkey
)
)
TYPE
=
MyISAM
;
--
...
...
sql/database-migrate.txt
View file @
9855627f
...
...
@@ -3859,3 +3859,21 @@ last_net_act,last_cpu_act,last_ext_act);
change `script` `script` smallint(3) NOT NULL default '0',
change `error_type` `error_type` varchar(255) NOT NULL default '';
4.103: Change the login table to use the uid_idx field, but also map
from the uid_idx to the uid for compatability with unchanged
code.
drop table login;
CREATE TABLE login (
uid_idx mediumint(8) unsigned NOT NULL default '0',
uid varchar(10) NOT NULL default '',
hashkey varchar(64) NOT NULL default '',
hashhash varchar(64) NOT NULL default '',
timeout varchar(10) NOT NULL default '',
adminon tinyint(1) NOT NULL default '0',
PRIMARY KEY (uid_idx,hashkey),
UNIQUE KEY hashhash (uid_idx,hashhash)
UNIQUE KEY uidkey (uid,hashkey)
) TYPE=MyISAM;
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment