git://git.slightlycyberpunk.com
/
firewall-lists-3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
83223b7
)
Adding unique constraint on lookups table
master
author
Brian Flowers
<git-admn@bsflowers.net>
Wed, 27 May 2020 12:44:26 +0000
(08:44 -0400)
committer
Brian Flowers
<git-admn@bsflowers.net>
Wed, 27 May 2020 12:44:26 +0000
(08:44 -0400)
bin/firewall-lists
patch
|
blob
|
history
diff --git
a/bin/firewall-lists
b/bin/firewall-lists
index
f7dd8d4
..
fc54c56
100755
(executable)
--- a/
bin/firewall-lists
+++ b/
bin/firewall-lists
@@
-251,7
+251,8
@@
CREATE TABLE lookups(id INTEGER,
domain INTEGER,
ip VARCHAR(128),
lookupDate DATETIME default CURRENT_TIMESTAMP,
domain INTEGER,
ip VARCHAR(128),
lookupDate DATETIME default CURRENT_TIMESTAMP,
- PRIMARY KEY(id));
+ PRIMARY KEY(id)
+ UNIQUE(domain, ip));
EOF
fi
}
EOF
fi
}