CREATE OR REPLACE FUNCTION f_unaccent(text)
  RETURNS text AS
$func$
SELECT public.unaccent('public.unaccent', $1)  -- schema-qualify function and dictionary
$func$  LANGUAGE sql IMMUTABLE;

CREATE OR REPLACE FUNCTION normalize(text)
  RETURNS text AS $$
SELECT replace(replace(lower(public.f_unaccent($1)),' ','-'), '''', '-')
$$ LANGUAGE sql;

Fix immutable index functions in resto db schema
Fix immutable index functions in resto db schema

Change-Id: Id573200cbff933b1c3ad70789b6fde2ba073ed60
