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
c0a957c9
Commit
c0a957c9
authored
Nov 13, 2012
by
Kirk Webb
Browse files
Add 'fixed' column to 'virt_blockstores' table.
parent
734a1c44
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
c0a957c9
...
...
@@ -4365,6 +4365,7 @@ CREATE TABLE `virt_blockstores` (
`type`
varchar
(
30
)
default
NULL
,
`role`
enum
(
'remote'
,
'local'
,
'unknown'
)
NOT
NULL
default
'unknown'
,
`size`
int
(
10
)
unsigned
NOT
NULL
default
'0'
,
`fixed`
text
NOT
NULL
,
PRIMARY
KEY
(
`exptidx`
,
`vname`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
...
...
sql/updates/4/318
0 → 100644
View file @
c0a957c9
#
# Add `fixed` column to the virt_blockstores table.
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("virt_blockstores", "fixed")) {
DBQueryFatal("alter table virt_blockstores add ".
" `fixed` text NOT NULL");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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