Commit b5c6348b authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Addendum to previous revision. Add orientation and change default

values to NULL.
parent be79278b
......@@ -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),
......
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment