Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
ba851e4c
Commit
ba851e4c
authored
Feb 27, 2014
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow three character uids (for Gary!).
parent
8db75899
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
sql/database-fill.sql
sql/database-fill.sql
+1
-1
sql/updates/4/384
sql/updates/4/384
+19
-0
No files found.
sql/database-fill.sql
View file @
ba851e4c
...
...
@@ -796,7 +796,7 @@ REPLACE INTO table_regex VALUES ('users','nonlocal_type','text','regex','^[-\\w]
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'uid'
,
'text'
,
'regex'
,
'^[a-zA-Z][
\\
w]+$'
,
2
,
8
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'uid_idx'
,
'text'
,
'regex'
,
'^[
\\
d]+$'
,
1
,
12
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'usr_phone'
,
'text'
,
'regex'
,
'^[-
\\
d
\\
(
\\
)
\\
+
\\
.x ]+$'
,
7
,
64
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'usr_name'
,
'text'
,
'regex'
,
'^[-
\\
w
\\
. ]+$'
,
4
,
64
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'usr_name'
,
'text'
,
'regex'
,
'^[-
\\
w
\\
. ]+$'
,
3
,
64
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'usr_email'
,
'text'
,
'regex'
,
'^([-
\\
w
\\
+
\\
.]+)
\\
@([-
\\
w
\\
.]+)$'
,
3
,
64
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'usr_shell'
,
'text'
,
'regex'
,
'^(csh|sh|bash|tcsh|zsh)$'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'users'
,
'usr_title'
,
'text'
,
'redirect'
,
'default:tinytext'
,
0
,
0
,
NULL
);
...
...
sql/updates/4/384
0 → 100644
View file @
ba851e4c
#
# Change minimum uid from four to three chars, for Gary!
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("REPLACE INTO table_regex VALUES ".
" ('users','usr_name','text','regex',".
" '^[-\\\\w\\\\. ]+\$',3,64,NULL)");
return 0;
}
# Local Variables:
# mode:perl
# End:
Write
Preview
Markdown
is supported
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