diff --git a/initdb/99_migrations_202404.sql b/initdb/99_migrations_202404.sql index e091e43..8cdd7dc 100644 --- a/initdb/99_migrations_202404.sql +++ b/initdb/99_migrations_202404.sql @@ -366,7 +366,7 @@ CREATE OR REPLACE FUNCTION public.process_logbook_queue_fn(IN _id integer) RETUR -- Add trip details name as note for the first geometry point entry from the GeoJSON SELECT format('{"trip": { "name": "%s", "duration": "%s", "distance": "%s" }}', logbook_rec.name, logbook_rec.duration, logbook_rec.distance) into trip_note; - -- Update the properties of the first feature + -- Update the properties of the first feature UPDATE api.logbook SET track_geojson = jsonb_set( track_geojson, diff --git a/initdb/99_migrations_202407.sql b/initdb/99_migrations_202407.sql index 520b072..68babdf 100644 --- a/initdb/99_migrations_202407.sql +++ b/initdb/99_migrations_202407.sql @@ -708,7 +708,7 @@ COMMENT ON FUNCTION public.cron_process_no_activity_fn IS 'init by pg_cron, check for vessel with no activity for more than 230 days then send notification'; --- Update grafana role SQL connection to 30 +-- Update grafana,qgis,api role SQL connection to 30 ALTER ROLE grafana WITH NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT NOBYPASSRLS NOREPLICATION CONNECTION LIMIT 30 LOGIN; ALTER ROLE api_anonymous WITH NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT NOBYPASSRLS NOREPLICATION CONNECTION LIMIT 30 LOGIN; ALTER ROLE qgis_role WITH NOSUPERUSER NOCREATEDB NOCREATEROLE NOINHERIT NOBYPASSRLS NOREPLICATION CONNECTION LIMIT 30 LOGIN;