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

Add a label field and a draw boolean to the obstacles table. The label

is a tag for the box, and the draw flag says whether to draw the
obstacle as a rectangle. The intent is to move away from fixed
obstacles and labels in the jpeg files, and instead draw them
dynamically. Kinda simple to start with; lets see if we can represent
everything we need ...
parent 69d2ff7c
...@@ -1274,6 +1274,8 @@ CREATE TABLE obstacles ( ...@@ -1274,6 +1274,8 @@ CREATE TABLE obstacles (
y2 int(10) unsigned NOT NULL default '0', y2 int(10) unsigned NOT NULL default '0',
z2 int(10) unsigned NOT NULL default '0', z2 int(10) unsigned NOT NULL default '0',
description tinytext, description tinytext,
label tinytext,
draw tinyint(1) NOT NULL default '0',
PRIMARY KEY (obstacle_id) PRIMARY KEY (obstacle_id)
) TYPE=MyISAM; ) TYPE=MyISAM;
......
...@@ -2543,3 +2543,13 @@ last_net_act,last_cpu_act,last_ext_act); ...@@ -2543,3 +2543,13 @@ last_net_act,last_cpu_act,last_ext_act);
orientation float NOT NULL default '0', orientation float NOT NULL default '0',
PRIMARY KEY (node_id,building,floor) PRIMARY KEY (node_id,building,floor)
) TYPE=MyISAM; ) TYPE=MyISAM;
1.324: Add a label field and a draw boolean to the obstacles
table. The label is a tag for the box, and the draw flag says
whether to draw the obstacle as a rectangle. The intent is to
move away from fixed obstacles and labels in the jpeg files,
and instead draw them dynamically. Kinda simple to start with;
lets see if we can represent everything we need ...
alter table obstacles add label tinytext;
alter table obstacles add draw tinyint(1) NOT NULL default '0';
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