Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-stable
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
emulab
emulab-stable
Commits
9e8d115d
Commit
9e8d115d
authored
Mar 07, 2017
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now that we can delete image versions, need to be able to tell the
image server to delete versions.
parent
6546b21c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
sql/database-create.sql
sql/database-create.sql
+2
-2
sql/updates/4/569
sql/updates/4/569
+19
-0
No files found.
sql/database-create.sql
View file @
9e8d115d
...
...
@@ -2319,8 +2319,8 @@ DROP TABLE IF EXISTS `image_deletions`;
CREATE
TABLE
`image_deletions`
(
`urn`
varchar
(
128
)
default
NULL
,
`image_uuid`
varchar
(
40
)
NOT
NULL
default
''
,
`
deleted`
datetime
default
NULL
,
PRIMARY
KEY
(
`image_uuid`
)
`
version`
int
(
8
)
unsigned
default
NULL
,
`deleted`
datetime
default
NULL
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
--
...
...
sql/updates/4/569
0 → 100644
View file @
9e8d115d
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("image_deletions", "version")) {
DBQueryFatal("alter table image_deletions add ".
" `version` int(8) unsigned default NULL ".
" after image_uuid");
}
DBQueryFatal("alter table image_deletions drop primary key");
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