From dd48fd58247fdba4922a654a44e0957c54d8656e Mon Sep 17 00:00:00 2001 From: Timothy Stack <stack@flux.utah.edu> Date: Mon, 28 Mar 2005 21:12:34 +0000 Subject: [PATCH] Add "fixed_x" and "fixed_y" fields to the cameras table which stores the fixed point on the ground where the camera origin is in world coordinates. --- sql/database-create.sql | 4 +++- sql/database-migrate.txt | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sql/database-create.sql b/sql/database-create.sql index 85b18b0f73..d1223e34ac 100644 --- a/sql/database-create.sql +++ b/sql/database-create.sql @@ -31,6 +31,8 @@ CREATE TABLE cameras ( width float NOT NULL default '0', height float NOT NULL default '0', config tinytext, + fixed_x float NOT NULL default '0', + fixed_y float NOT NULL default '0', PRIMARY KEY (name,building,floor) ) TYPE=MyISAM; @@ -839,7 +841,7 @@ CREATE TABLE new_interfaces ( switch_port tinyint(3) default NULL, cable smallint(6) default NULL, len tinyint(4) default NULL, - role tinytext default NULL, + role tinytext, PRIMARY KEY (new_node_id,card) ) TYPE=MyISAM; diff --git a/sql/database-migrate.txt b/sql/database-migrate.txt index e9f4e78045..8efb92ef33 100644 --- a/sql/database-migrate.txt +++ b/sql/database-migrate.txt @@ -2567,3 +2567,9 @@ last_net_act,last_cpu_act,last_ext_act); alter table new_interfaces add role tinytext default NULL; +1.327: Add "fixed_x" and "fixed_y" fields to the cameras table which + stores the fixed point on the ground where the camera origin is + in world coordinates. + + alter table cameras add fixed_x float NOT NULL default '0'; + alter table cameras add fixed_y float NOT NULL default '0'; -- GitLab