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
f14c93af
Commit
f14c93af
authored
Jun 05, 2010
by
Ryan Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add subboss_images table to database
parent
5bd99aef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
sql/database-create.sql
sql/database-create.sql
+16
-0
sql/updates/4/214
sql/updates/4/214
+25
-0
No files found.
sql/database-create.sql
View file @
f14c93af
...
...
@@ -1460,6 +1460,22 @@ CREATE TABLE `image_history` (
KEY
`rsrcidx`
(
`rsrcidx`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
--
-- Table structure for table `subboss_images`
--
DROP
TABLE
IF
EXISTS
`subboss_images`
;
CREATE
TABLE
`subboss_images`
(
`subboss_id`
varchar
(
32
)
NOT
NULL
default
''
,
`imageid`
int
(
8
)
unsigned
NOT
NULL
default
'0'
,
`load_address`
text
,
`frisbee_pid`
int
(
11
)
default
'0'
,
`load_busy`
tinyint
(
4
)
NOT
NULL
default
'0'
,
`sync`
tinyint
(
4
)
NOT
NULL
default
'0'
,
PRIMARY
KEY
(
`subboss_id`
,
`imageid`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
latin1
;
--
-- Table structure for table `images`
--
...
...
sql/updates/4/214
0 → 100644
View file @
f14c93af
#
# Add subboss_images table
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBTableExists("subboss_images")) {
DBQueryFatal("CREATE TABLE `subboss_images` ( ".
"`subboss_id` varchar(32) NOT NULL default '' " .
"`imageid` int(8) unsigned NOT NULL default '0' " .
"`load_address` text " .
"`frisbee_pid` int(11) default '0' " .
"`load_busy` tinyint(4) NOT NULL default '0' ".
"`sync` tinyint(4) NOT NULL default '0' ".
" PRIMARY KEY (`subboss_id`,`imageid`), ".
") ENGINE=MyISAM DEFAULT CHARSET=latin1");
}
return 0;
}
1;
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