IO-1349 Update Hasura to 2.0.9.
This commit is contained in:
2
hasura/migrations/1629738990845_run_sql_migration/up.sql
Executable file
2
hasura/migrations/1629738990845_run_sql_migration/up.sql
Executable file
@@ -0,0 +1,2 @@
|
||||
|
||||
CREATE OR REPLACE FUNCTION public.search_dms_vehicles(search text)RETURNS SETOF dms_vehicles LANGUAGE plpgsql STABLE AS $FUNCTION$ BEGIN IF search='' THEN RETURN query SELECT*FROM dms_vehicles;ELSE RETURN query SELECT*FROM dms_vehicles WHERE make ILIKE'%'||search||'%' OR model ILIKE'%'||search||'%' ORDER BY make ILIKE'%'||search||'%' OR NULL,model ILIKE'%'||search||'%' OR NULL;END IF;END$FUNCTION$;
|
||||
@@ -1,13 +0,0 @@
|
||||
- args:
|
||||
cascade: true
|
||||
read_only: false
|
||||
sql: CREATE OR REPLACE FUNCTION public.search_dms_vehicles(search text)RETURNS
|
||||
SETOF dms_vehicles LANGUAGE plpgsql STABLE AS $FUNCTION$ BEGIN IF search=''
|
||||
THEN RETURN query SELECT*FROM dms_vehicles;ELSE RETURN query SELECT*FROM dms_vehicles
|
||||
WHERE make ILIKE'%'||search||'%' OR model ILIKE'%'||search||'%' ORDER BY make
|
||||
ILIKE'%'||search||'%' OR NULL,model ILIKE'%'||search||'%' OR NULL;END IF;END$FUNCTION$;
|
||||
type: run_sql
|
||||
- args:
|
||||
name: search_dms_vehicles
|
||||
schema: public
|
||||
type: track_function
|
||||
Reference in New Issue
Block a user