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$;
|
||||
Reference in New Issue
Block a user