Add required table iptocountry, for downloads
authorMagnus Hagander <magnus@hagander.net>
Sat, 20 Aug 2011 19:50:11 +0000 (21:50 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 20 Aug 2011 19:56:24 +0000 (21:56 +0200)
sql/iptocountry.sql [new file with mode: 0644]

diff --git a/sql/iptocountry.sql b/sql/iptocountry.sql
new file mode 100644 (file)
index 0000000..a2d8ae0
--- /dev/null
@@ -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);