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
b5c6348b
Commit
b5c6348b
authored
Jan 28, 2005
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addendum to previous revision. Add orientation and change default
values to NULL.
parent
be79278b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
sql/database-create.sql
sql/database-create.sql
+4
-2
sql/database-migrate.txt
sql/database-migrate.txt
+10
-2
No files found.
sql/database-create.sql
View file @
b5c6348b
...
...
@@ -763,6 +763,7 @@ CREATE TABLE location_info (
building
varchar
(
32
)
default
NULL
,
loc_x
int
(
10
)
unsigned
NOT
NULL
default
'0'
,
loc_y
int
(
10
)
unsigned
NOT
NULL
default
'0'
,
orientation
float
default
NULL
;
contact
tinytext
,
phone
tinytext
,
room
varchar
(
32
)
default
NULL
,
...
...
@@ -1161,8 +1162,9 @@ CREATE TABLE nodes (
battery_percentage
float
default
NULL
,
battery_timestamp
int
(
10
)
unsigned
default
NULL
,
boot_errno
int
(
11
)
NOT
NULL
default
'0'
,
destination_x
float
NOT
NULL
default
'0'
,
destination_y
float
NOT
NULL
default
'0'
,
destination_x
float
default
NULL
,
destination_y
float
default
NULL
,
destination_orientation
float
default
NULL
,
PRIMARY
KEY
(
node_id
),
KEY
phys_nodeid
(
phys_nodeid
),
KEY
node_id
(
node_id
,
phys_nodeid
),
...
...
sql/database-migrate.txt
View file @
b5c6348b
...
...
@@ -2423,8 +2423,16 @@ last_net_act,last_cpu_act,last_ext_act);
1.309: Add destination coords to the nodes table for robots.
alter table nodes add destination_x float
NOT NULL default '0'
;
alter table nodes add destination_y float
NOT NULL default '0'
;
alter table nodes add destination_x float
default NULL
;
alter table nodes add destination_y float
default NULL
;
Unlike other coords, these are meters and translated to pixels
later when displayed (trying to head in the right direction ...)
1.310: Addendum to previous revision. Add orientation and change
default values to NULL.
alter table location_info add orientation float \
default NULL after loc_y;
alter table nodes add destination_orientation float \
default NULL;
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