From bdb4be8237e6f19cb8cef83dc7da684b80a0d708 Mon Sep 17 00:00:00 2001
From: Robert Ricci <ricci@cs.utah.edu>
Date: Tue, 5 Apr 2005 06:53:31 +0000
Subject: [PATCH] Add a numeric_id column to virt_nodes - for motes, this will
 be used to set an ID for the programmed mote.

---
 sql/database-create.sql  | 1 +
 sql/database-migrate.txt | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/sql/database-create.sql b/sql/database-create.sql
index 555ffd40a7..0e6ce81280 100644
--- a/sql/database-create.sql
+++ b/sql/database-create.sql
@@ -2078,6 +2078,7 @@ CREATE TABLE virt_nodes (
   routertype enum('none','ospf','static','manual','static-ddijk','static-old') NOT NULL default 'none',
   fixed text NOT NULL,
   inner_elab_role enum('boss','ops','node') default NULL,
+  numeric_id int(11) default NULL,
   KEY pid (pid,eid,vname)
 ) TYPE=MyISAM;
 
diff --git a/sql/database-migrate.txt b/sql/database-migrate.txt
index 2b398ad870..dcee3a669a 100644
--- a/sql/database-migrate.txt
+++ b/sql/database-migrate.txt
@@ -2594,3 +2594,7 @@ last_net_act,last_cpu_act,last_ext_act);
 	alter table obstacles add no_tooltip tinyint(1) NOT NULL \
                 default '0';
 
+1.330: Add a numeric_id column to virt_nodes - for motes, this will be
+       used to set an ID for the programmed mote.
+
+        alter table virt_nodes add column numeric_id int default NULL;
-- 
GitLab