projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c00443d
)
Add required table iptocountry, for downloads
author
Magnus Hagander
<magnus@hagander.net>
Sat, 20 Aug 2011 19:50:11 +0000
(21:50 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Sat, 20 Aug 2011 19:56:24 +0000
(21:56 +0200)
sql/iptocountry.sql
[new file with mode: 0644]
patch
|
blob
diff --git a/sql/iptocountry.sql
b/sql/iptocountry.sql
new file mode 100644
(file)
index 0000000..
a2d8ae0
--- /dev/null
+++ b/
sql/iptocountry.sql
@@ -0,0
+1,12
@@
+
+CREATE TABLE iptocountry (
+ id integer DEFAULT nextval(('iptocountry_id_seq'::text)::regclass) NOT NULL,
+ startip bigint NOT NULL,
+ endip bigint NOT NULL,
+ countrycode character(2) NOT NULL,
+ country character varying(100) NOT NULL
+);
+
+
+ALTER TABLE ONLY iptocountry
+ ADD CONSTRAINT iptocountry_pkey PRIMARY KEY (id);