From 64455c6ed209bdebe92fcc5fed54a041ba290276 Mon Sep 17 00:00:00 2001
From: Mike Hibler <mike@flux.utah.edu>
Date: Wed, 1 Dec 2004 22:18:58 +0000
Subject: [PATCH] 1.285: More firewall state.  Possibly temporary hack, store
 unique vlan        ID in firewalls table:

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

diff --git a/sql/database-create.sql b/sql/database-create.sql
index 4d2ec66746..0a19635db0 100644
--- a/sql/database-create.sql
+++ b/sql/database-create.sql
@@ -411,6 +411,7 @@ CREATE TABLE firewalls (
   type enum('ipfw','ipfw2','ipchains','ipfw2-vlan') NOT NULL default 'ipfw',
   style enum('open','closed','basic') NOT NULL default 'basic',
   vlan int(11) default NULL,
+  vlanid int(11) default NULL,
   PRIMARY KEY  (pid,eid,fwname),
   KEY vlan (vlan)
 ) TYPE=MyISAM;
diff --git a/sql/database-migrate.txt b/sql/database-migrate.txt
index 8f679760c4..66a7c31b1a 100644
--- a/sql/database-migrate.txt
+++ b/sql/database-migrate.txt
@@ -2141,3 +2141,8 @@ last_net_act,last_cpu_act,last_ext_act);
        appropriate place in reserved.  Then do:
 
 	alter table nodes drop column cnet_vlan;
+
+1.285: More firewall state.  Possibly temporary hack, store unique vlan
+       ID in firewalls table:
+
+	alter table firewalls add vlanid int(11) default NULL;
-- 
GitLab