Changes conf table config

This commit is contained in:
Guido Fioravantti 2015-11-10 15:36:57 +01:00
parent aabc873eac
commit 389b0a2b31
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
-- Create a conf table -- Create a conf table
CREATE TABLE conf (key TEXT NOT NULL PRIMARY KEY, values_json TEXT); CREATE TABLE conf (key TEXT PRIMARY KEY, values_json TEXT NOT NULL);
INSERT INTO conf VALUES ('cds', '{"Manolo Escobar": {"El Limonero":"En stock", "Viva el vino":"Sin stock"}}'); INSERT INTO conf VALUES ('cds', '{"Manolo Escobar": {"El Limonero":"En stock", "Viva el vino":"Sin stock"}}');
-- Test key retrieval -- Test key retrieval
SELECT cdb_geocoder_server._get_conf('cds'); SELECT cdb_geocoder_server._get_conf('cds');

View File

@ -1,5 +1,5 @@
-- Create a conf table -- Create a conf table
CREATE TABLE conf (key TEXT NOT NULL PRIMARY KEY, values_json TEXT); CREATE TABLE conf (key TEXT PRIMARY KEY, values_json TEXT NOT NULL);
INSERT INTO conf VALUES ('cds', '{"Manolo Escobar": {"El Limonero":"En stock", "Viva el vino":"Sin stock"}}'); INSERT INTO conf VALUES ('cds', '{"Manolo Escobar": {"El Limonero":"En stock", "Viva el vino":"Sin stock"}}');
-- Test key retrieval -- Test key retrieval