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
f2b8de83
Commit
f2b8de83
authored
Dec 08, 2016
by
Gary Wong
Browse files
Record reservation requests awaiting approval.
parent
e7ce61ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
f2b8de83
...
...
@@ -2011,6 +2011,8 @@ CREATE TABLE `future_reservations` (
`notes`
mediumtext
,
`admin_notes`
mediumtext
,
`created`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`approved`
datetime
DEFAULT
NULL
,
`approver`
varchar
(
8
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`idx`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
...
...
sql/updates/4/548
0 → 100644
View file @
f2b8de83
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("future_reservations", "approved")) {
DBQueryFatal("ALTER TABLE future_reservations ADD " .
" `approved` datetime DEFAULT NULL AFTER `created`");
}
if (!DBSlotExists("future_reservations", "approver")) {
DBQueryFatal("ALTER TABLE future_reservations ADD " .
" `approver` varchar(8) DEFAULT NULL AFTER `approved`");
}
return 0;
}
# 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