Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
bfd59076
Commit
bfd59076
authored
Apr 08, 2010
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing reg expressions to table_regex, os_info,pid and
images,mbr_version.
parent
938b0fef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
sql/database-fill.sql
sql/database-fill.sql
+2
-0
sql/updates/4/196
sql/updates/4/196
+22
-0
No files found.
sql/database-fill.sql
View file @
bfd59076
...
...
@@ -848,6 +848,7 @@ REPLACE INTO table_regex VALUES ('images','version','text','redirect','os_info:v
REPLACE
INTO
table_regex
VALUES
(
'images'
,
'osfeatures'
,
'text'
,
'redirect'
,
'os_info:osfeatures'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'images'
,
'op_mode'
,
'text'
,
'redirect'
,
'os_info:op_mode'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'images'
,
'wholedisk'
,
'text'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'images'
,
'mbr_version'
,
'text'
,
'redirect'
,
'default:int'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'images'
,
'max_concurrent'
,
'text'
,
'redirect'
,
'default:int'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'images'
,
'reboot_waittime'
,
'text'
,
'redirect'
,
'default:int'
,
0
,
0
,
NULL
);
...
...
@@ -938,6 +939,7 @@ REPLACE INTO table_regex VALUES ('virt_node_motelog','pid','text','redirect','pr
REPLACE
INTO
table_regex
VALUES
(
'virt_node_motelog'
,
'eid'
,
'text'
,
'redirect'
,
'experiments:eid'
,
0
,
0
,
NULL
);
REPLACE
INTO
`table_regex`
VALUES
(
'virt_nodes'
,
'plab_plcnet'
,
'text'
,
'regex'
,
'^[
\\
w
\\
_
\\
d]+$'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'os_info'
,
'osid'
,
'text'
,
'regex'
,
'^[-
\\
w
\\
.+]+$'
,
2
,
35
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'os_info'
,
'pid'
,
'text'
,
'redirect'
,
'projects:pid'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'os_info'
,
'pid_idx'
,
'text'
,
'redirect'
,
'projects:pid_idx'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'os_info'
,
'osname'
,
'text'
,
'regex'
,
'^[-
\\
w
\\
.+]+$'
,
2
,
20
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'os_info'
,
'description'
,
'text'
,
'redirect'
,
'default:fulltext'
,
1
,
256
,
NULL
);
...
...
sql/updates/4/196
0 → 100644
View file @
bfd59076
use strict;
use libdb;
#
# Regular expressions added for images and os_info tables, to support
# changes in how we dump/load descriptors during initial install.
#
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("replace into table_regex values ".
" ('images','mbr_version','text','redirect', ".
" 'default:int',0,0,NULL)");
DBQueryFatal("replace into table_regex values ".
" ('os_info','pid','text','redirect',".
" 'projects:pid',0,0,NULL)");
return 0;
}
1;
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