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
72323b79
Commit
72323b79
authored
Jun 05, 2017
by
Leigh B Stoller
Browse files
Database slots for issue
#269
; deprecating images.
parent
f2ddf33f
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
72323b79
...
...
@@ -2522,6 +2522,9 @@ CREATE TABLE `image_versions` (
`nodetypes`
text
default
NULL
,
`uploader_path`
tinytext
,
`notes`
mediumtext
,
`deprecated`
datetime
default
NULL
,
`deprecated_iserror`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`deprecated_message`
mediumtext
,
PRIMARY
KEY
(
`imageid`
,
`version`
),
KEY
`pid`
(
`pid`
,
`imagename`
,
`version`
),
KEY
`gid`
(
`gid`
),
...
...
sql/updates/4/583
0 → 100644
View file @
72323b79
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_versions", "deprecated")) {
DBQueryFatal("alter table image_versions " .
" add `deprecated` datetime default NULL, ".
" add `deprecated_iserror` tinyint(1) NOT NULL default '0', ".
" add `deprecated_message` mediumtext");
}
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