IO-233 Added vehicle search & selection on form.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
[]
|
||||
13
hasura/migrations/1629738990845_run_sql_migration/up.yaml
Normal file
13
hasura/migrations/1629738990845_run_sql_migration/up.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
- 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
|
||||
@@ -4642,6 +4642,9 @@ functions:
|
||||
- function:
|
||||
schema: public
|
||||
name: search_cccontracts
|
||||
- function:
|
||||
schema: public
|
||||
name: search_dms_vehicles
|
||||
- function:
|
||||
schema: public
|
||||
name: search_exportlog
|
||||
|
||||
Reference in New Issue
Block a user