mirror of
https://github.com/Av0idD4rk/firegex.git
synced 2026-10-23 16:31:00 +00:00
fix: action excluded from unique constraint
This commit is contained in:
parent
572cb102d7
commit
cdb4e6ac21
@ -47,7 +47,7 @@ db = SQLite('db/firewall-rules.db', {
|
||||
'action': 'VARCHAR(10) NOT NULL CHECK (action IN ("accept", "drop", "reject"))',
|
||||
},
|
||||
'QUERY':[
|
||||
"CREATE UNIQUE INDEX IF NOT EXISTS unique_rules ON rules (proto, ip_src, ip_dst, port_src_from, port_src_to, port_dst_from, port_dst_to, action, mode);"
|
||||
"CREATE UNIQUE INDEX IF NOT EXISTS unique_rules ON rules (proto, ip_src, ip_dst, port_src_from, port_src_to, port_dst_from, port_dst_to, mode);"
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user