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
2c4dba27
Commit
2c4dba27
authored
Aug 18, 2015
by
Leigh B Stoller
Browse files
Add a status timestamp to the apt_instances table.
parent
6402a1af
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
2c4dba27
...
...
@@ -195,6 +195,7 @@ CREATE TABLE `apt_instances` (
`public_url`
tinytext
,
`created`
datetime
default
NULL
,
`status`
varchar
(
32
)
default
NULL
,
`status_timestamp`
datetime
default
NULL
,
`admin_lockdown`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`user_lockdown`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`extension_code`
varchar
(
32
)
default
NULL
,
...
...
sql/updates/4/466
0 → 100644
View file @
2c4dba27
#
# APT stuff
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_instances", "status_timestamp")) {
DBQueryFatal("alter table apt_instances add ".
" `status_timestamp` datetime default NULL ".
" after status");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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