]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 4 Jan 2018 15:39:34 +0000 (15:39 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 4 Jan 2018 15:39:34 +0000 (15:39 +0000)
etc/dbq/000-local.php
share/sql/zipcode.sql

index 0a39675f5e2514919c27e3bb95f8479bd253775f..412871caec70ed5f07b7e3887f206e84676ed5b1 100644 (file)
@@ -8,16 +8,6 @@ $DBQ = [
     'name' => 'Nb',
     'default_table' => 'mime',
     'host' => nb::ROOT_DIR.'/share/db/nb.db',
-
-    'tables' => [
-       '_country' => [
-               'row_parse_post' => ( nb::php_cli() or nb::client_content_type('text/plain') != 'text/html' ) ? null : function(&$r,$t) {
-                                       $r['zaza'] = 'zaza';
-                                       bye('zaza');
-                                       return;
-               },
-       ],
-               ],
   ],
 
 ];
index 2b76372e6bef0ab7334f35a415f2224665bb9956..36172f382b9f20713e5c38828ec74f42f9c31af3 100644 (file)
@@ -1,4 +1,4 @@
--- DROP TABLE IF EXISTS zipcode;
+DROP TABLE IF EXISTS zipcode;
 CREATE TABLE IF NOT EXISTS zipcode (
   id varchar(20),
   country varchar(2),
@@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS zipcode (
   province_code varchar(20),
   community varchar(100),
   community_code varchar(20),
-  latitue numeric(7,4),
+  latitude numeric(7,4),
   longitude numeric(7,4),
   accuracy smallint
   -- PRIMARY KEY(id,country)