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
88d3cd60
Commit
88d3cd60
authored
Dec 06, 2005
by
Mike Hibler
Browse files
Next round of DB changes for disk state saving.
parent
abfbb5d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
88d3cd60
...
...
@@ -407,6 +407,7 @@ CREATE TABLE experiments (
paniced
tinyint
(
1
)
NOT
NULL
default
'0'
,
panic_date
datetime
default
NULL
,
delay_capacity
tinyint
(
3
)
unsigned
default
NULL
,
savedisk
tinyint
(
1
)
NOT
NULL
default
'0'
,
locpiper_pid
int
(
11
)
default
'0'
,
locpiper_port
int
(
11
)
default
'0'
,
PRIMARY
KEY
(
eid
,
pid
),
...
...
@@ -1443,6 +1444,8 @@ CREATE TABLE partitions (
node_id
varchar
(
32
)
NOT
NULL
default
''
,
partition
tinyint
(
4
)
NOT
NULL
default
'0'
,
osid
varchar
(
35
)
default
NULL
,
imageid
varchar
(
45
)
default
NULL
,
imagepid
varchar
(
12
)
NOT
NULL
default
''
,
PRIMARY
KEY
(
node_id
,
partition
)
)
TYPE
=
MyISAM
;
...
...
sql/database-migrate.txt
View file @
88d3cd60
...
...
@@ -2892,3 +2892,14 @@ last_net_act,last_cpu_act,last_ext_act);
create_time datetime default NULL,
PRIMARY KEY (node_id)
) TYPE=MyISAM;
4.19: Infrastructure for disk state saving. Add imageid and imagepid
fields to partitions table to track what image is loaded on the disk
and savedisk field in experiments table.
alter table partitions add imageid varchar(45) default NULL \
after osid;
alter table partitions add imagepid varchar(12) NOT NULL default '' \
after imageid;
alter table experiments add savedisk tinyint(1) NOT NULL default 0 \
after delay_capacity;
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