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
0035e93b
Commit
0035e93b
authored
Oct 31, 2016
by
Leigh B Stoller
Browse files
Add apt_aggregate_nodetypes table.
parent
c3375835
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
0035e93b
...
...
@@ -54,6 +54,20 @@ CREATE TABLE `active_checkups` (
PRIMARY
KEY
(
`object`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
--
-- Table structure for table `apt_aggregate_nodetypes`
--
DROP
TABLE
IF
EXISTS
`apt_aggregate_nodetypes`
;
CREATE
TABLE
`apt_aggregate_nodetypes`
(
`urn`
varchar
(
128
)
NOT
NULL
default
''
,
`type`
varchar
(
30
)
NOT
NULL
default
''
,
`count`
int
(
11
)
default
'0'
,
`free`
int
(
11
)
default
'0'
,
`updated`
datetime
default
NULL
,
PRIMARY
KEY
(
`urn`
,
`type`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
--
-- Table structure for table `apt_aggregates`
--
...
...
sql/updates/4/541
0 → 100644
View file @
0035e93b
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("apt_aggregate_nodetypes")) {
DBQueryFatal("CREATE TABLE `apt_aggregate_nodetypes` ( ".
" `urn` varchar(128) NOT NULL default '', ".
" `type` varchar(30) NOT NULL default '', ".
" `count` int(11) default '0', ".
" `free` int(11) default '0', ".
" `updated` datetime default NULL, ".
" PRIMARY KEY (`urn`,`type`) ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
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