diff --git a/sql/database-create.sql b/sql/database-create.sql index 6b8b6c7dc861fc8149487db89f9fe97079a766b8..b28a588b805b52a5816e036fae1578b6e1470127 100644 --- a/sql/database-create.sql +++ b/sql/database-create.sql @@ -1161,6 +1161,8 @@ 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', PRIMARY KEY (node_id), KEY phys_nodeid (phys_nodeid), KEY node_id (node_id,phys_nodeid), diff --git a/sql/database-migrate.txt b/sql/database-migrate.txt index dff46fcb800283249b3f5745372694472aec022f..6aaa0e4e0df26e1b554f39d7eca7b2e9bcd61e05 100644 --- a/sql/database-migrate.txt +++ b/sql/database-migrate.txt @@ -2420,3 +2420,11 @@ last_net_act,last_cpu_act,last_ext_act); config tinytext, PRIMARY KEY (name,building,floor) ) TYPE=MyISAM; + +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'; + + Unlike other coords, these are meters and translated to pixels + later when displayed (trying to head in the right direction ...)