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
59c07f6f
Commit
59c07f6f
authored
Feb 03, 2010
by
Robert Ricci
Browse files
Update database schema for the new ns_include column in
sitevariables.
parent
1b2ecd6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
59c07f6f
...
...
@@ -3133,6 +3133,7 @@ CREATE TABLE `sitevariables` (
`value`
text
,
`defaultvalue`
text
NOT
NULL
,
`description`
text
,
`ns_include`
tinyint
(
0
)
NOT
NULL
default
0
,
PRIMARY
KEY
(
`name`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
...
...
sql/updates/4/191
0 → 100644
View file @
59c07f6f
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
#
# Add a new column to the sitevariables table
#
DBQueryFatal("alter table sitevariables add column ns_include " .
"tinyint(0) NOT NULL default 0");
return 0;
}
1;
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