DELETE FROM public.portti_view WHERE application='published-map'; 
DELETE FROM public.portti_view WHERE application='mapwfs2';
DELETE FROM public.portti_view WHERE application='servlet_published_ol3';

Remove view definitions with old applications names
Remove view definitions with old applications names
