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-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
372260bc
Commit
372260bc
authored
Feb 14, 2019
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a slot to the apt_aggregates table to flag aggregates that require a
power off panic.
parent
8fb9abb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
sql/database-create.sql
sql/database-create.sql
+1
-0
sql/updates/4/658
sql/updates/4/658
+20
-0
No files found.
sql/database-create.sql
View file @
372260bc
...
...
@@ -141,6 +141,7 @@ CREATE TABLE `apt_aggregates` (
`weburl`
tinytext
,
`has_datasets`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`reservations`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`panicpoweroff`
tinyint
(
1
)
NOT
NULL
default
'0'
,
`portals`
set
(
'emulab'
,
'aptlab'
,
'cloudlab'
,
'phantomnet'
,
'powder'
)
default
NULL
,
`jsondata`
text
,
PRIMARY
KEY
(
`urn`
)
...
...
sql/updates/4/658
0 → 100644
View file @
372260bc
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBSlotExists("apt_aggregates", "panicpoweroff")) {
DBQueryFatal("alter table apt_aggregates add ".
" `panicpoweroff` tinyint(1) NOT NULL default '0' ".
" after nolocalimages");
}
return 0;
}
1;
# 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