mirror of
https://github.com/apache/cloudstack
synced 2026-08-28 00:29:39 +00:00
Fixed db upgrade issue for 229-2210 firewall rules
This commit is contained in:
parent
23674a5386
commit
73fe2cbb89
@ -104,10 +104,12 @@ public class Upgrade229to2210 implements DbUpgrade {
|
||||
pstmt.executeUpdate();
|
||||
|
||||
//get new FirewallRule update
|
||||
pstmt = conn.prepareStatement("SELECT id from firewall_rules where purpose='Firewall' and start_port=? and end_port=? and protocol=?");
|
||||
pstmt = conn.prepareStatement("SELECT id from firewall_rules where purpose='Firewall' and start_port=? and end_port=? and protocol=? and ip_address_id=? and network_id=?");
|
||||
pstmt.setInt(1, startPort);
|
||||
pstmt.setInt(2, endPort);
|
||||
pstmt.setString(3, protocol);
|
||||
pstmt.setLong(4, ipId);
|
||||
pstmt.setLong(5, networkId);
|
||||
|
||||
ResultSet rs1 = pstmt.executeQuery();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user