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
9141c149
Commit
9141c149
authored
Nov 30, 2015
by
Leigh B Stoller
Browse files
Add disabled flag to profile (versions). Code to follow.
parent
ab578286
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-fill.sql
View file @
9141c149
...
...
@@ -1311,6 +1311,7 @@ REPLACE INTO table_regex VALUES ('apt_profiles','public','int','redirect','defau
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'listed'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'shared'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'topdog'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'disabled'
,
'int'
,
'redirect'
,
'default:boolean'
,
0
,
0
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'description'
,
'text'
,
'redirect'
,
'default:html_fulltext'
,
0
,
512
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'rspec'
,
'text'
,
'redirect'
,
'default:html_fulltext'
,
0
,
262143
,
NULL
);
REPLACE
INTO
table_regex
VALUES
(
'apt_profiles'
,
'script'
,
'text'
,
'redirect'
,
'default:html_fulltext'
,
0
,
65535
,
NULL
);
...
...
sql/updates/4/485
0 → 100644
View file @
9141c149
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_profiles", "disabled")) {
DBQueryFatal("alter table apt_profiles add ".
" `disabled` tinyint(1) NOT NULL default '0' ".
" after topdog");
}
if (!DBSlotExists("apt_profile_versions", "disabled")) {
DBQueryFatal("alter table apt_profile_versions add ".
" `disabled` tinyint(1) NOT NULL default '0' ".
" after deleted");
}
DBQueryFatal("REPLACE INTO table_regex VALUES ".
" ('apt_profiles','disabled','int','redirect',".
" 'default:boolean',0,0,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