Commit 827aa497 authored by Leigh Stoller's avatar Leigh Stoller

I forgot about the firewalls table.

parent 5bca3abc
......@@ -257,6 +257,21 @@ if (! TableChanged("firewall_rules", "exptidx")) {
UpdateTablePidEid("firewall_rules", "exptidx", "pid", "eid");
DBQueryFatal("unlock tables");
# firewalls
DBQueryFatal("lock tables firewalls write");
if (! TableChanged("firewalls", "exptidx")) {
DBQueryFatal("alter table firewalls ".
"add `exptidx` int(11) NOT NULL default '0' after eid");
UpdateTablePidEid("firewalls", "exptidx", "pid", "eid");
DBQueryFatal("alter table firewalls add KEY ".
"pideid (`pid`,`eid`,`fwname`)");
DBQueryFatal("alter table firewalls drop PRIMARY KEY");
DBQueryFatal("alter table firewalls add PRIMARY KEY ".
"(`exptidx`,`fwname`)");
}
UpdateTablePidEid("firewalls", "exptidx", "pid", "eid");
DBQueryFatal("unlock tables");
# ipport_ranges
DBQueryFatal("lock tables ipport_ranges write");
if (! TableChanged("ipport_ranges", "exptidx")) {
......
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