Skip to content
GitLab
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
c8ceb583
Commit
c8ceb583
authored
May 03, 2010
by
Leigh B Stoller
Browse files
BUG FIX: Hmm, left out the table_regex entry for new isswitch slot
of the node_types table. How did I do that?
parent
c048acc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-fill.sql
View file @
c8ceb583
...
...
@@ -860,6 +860,7 @@ REPLACE INTO table_regex VALUES ('node_types','node_type','text','regex','^[-\\w
REPLACE
INTO
table_regex
VALUES
(
'node_types'
,
'class'
,
'text'
,
'regex'
,
'^[
\\
w]+$'
,
1
,
30
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'node_types'
,
'isvirtnode'
,
'text'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'node_types'
,
'isjailed'
,
'text'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'node_types'
,
'isswitch'
,
'text'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'node_types'
,
'isdynamic'
,
'text'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'node_types'
,
'isremotenode'
,
'text'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'node_types'
,
'issubnode'
,
'text'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
...
...
sql/updates/4/200
View file @
c8ceb583
...
...
@@ -45,6 +45,10 @@ sub DoUpdate($$$)
" 'forwarding_protocols','ethernet','string' ".
"from node_types where isswitch=1");
DBQueryFatal("replace into table_regex values ".
" ('node_types','isswitch','text','redirect',".
" 'default:boolean',0,0,NULL)");
# Add another missing regex entry for os_info table.
DBQueryFatal("replace into table_regex values ".
" ('os_info','mfs','int','redirect',".
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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