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
57935897
Commit
57935897
authored
Nov 16, 2010
by
Jonathon Duerig
Browse files
Add update file to change sitevar description.
parent
d7ffcbca
Changes
1
Hide whitespace changes
Inline
Side-by-side
sql/updates/4/224
0 → 100644
View file @
57935897
#
# Change sitevar description
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $foo = "Allow members of this project to view all running experiments ".
"on the experiment list page";
if (TBSiteVarExists("general/open_showexplist")) {
DBQueryFatal("UPDATE sitevariables SET ".
"description='Allow members of this project to view all running experiments on the experiment list page' ".
"WHERE name='general/open_showexplist'");
}
else {
DBQueryFatal("INSERT INTO sitevariables VALUES ".
"('general/open_showexplist',NULL,'',".
"'$foo',0)");
}
return 0;
}
1;
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