[ci-ignore] SQL for Indexing
This commit is contained in:
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: create index vendor_idx_name on vendors(name);
|
||||
type: run_sql
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: create index vendor_idx_active on vendors(active);
|
||||
type: run_sql
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,8 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: |-
|
||||
create index bills_idx_date on bills(date);
|
||||
create index joblines_idx_removed on joblines(removed);
|
||||
create index joblines_idx_mod_lbr_ty on joblines(mod_lbr_ty);
|
||||
type: run_sql
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
@@ -0,0 +1,5 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: create index joblines_idx_line_no on joblines(line_no, jobid);
|
||||
type: run_sql
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
17
hasura/migrations/1619824320231_run_sql_migration/up.yaml
Normal file
17
hasura/migrations/1619824320231_run_sql_migration/up.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: |-
|
||||
create index jobs_idx_status on jobs (status);
|
||||
|
||||
create index jobs_idx_ro_number on jobs ((lower(ro_number)));
|
||||
create index jobs_idx_ownr_fn on jobs ((lower(ownr_fn)));
|
||||
create index jobs_idx_ownr_ln on jobs ((lower(ownr_ln)));
|
||||
|
||||
create index parts_orders_idx_order_date on parts_orders (order_date);
|
||||
|
||||
create index cccontracts_idx_actual_return on cccontracts (actualreturn);
|
||||
create index courtesycars_idx_fleet on courtesycars (fleetnumber);
|
||||
|
||||
create index bills_idx_invoice_number on bills ((lower(invoice_number)));
|
||||
type: run_sql
|
||||
@@ -0,0 +1 @@
|
||||
[]
|
||||
18
hasura/migrations/1619824803848_run_sql_migration/up.yaml
Normal file
18
hasura/migrations/1619824803848_run_sql_migration/up.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
- args:
|
||||
cascade: false
|
||||
read_only: false
|
||||
sql: |-
|
||||
create index conversations_idx_updated_at on conversations (updated_at);
|
||||
create index messages_idx_created_at on messages (created_at);
|
||||
create index conversations_idx_phone_num on conversations (phone_num);
|
||||
|
||||
create index employees_idx_employee_number on employees (employee_number);
|
||||
create index jobs_idx_date_exported on jobs (date_exported);
|
||||
|
||||
create index owners_idx_ownr_fn on owners((lower(ownr_fn)));
|
||||
create index owners_idx_ownr_ln on owners((lower(ownr_ln)));
|
||||
create index owners_idx_ownr_co_nm on owners((lower(ownr_co_nm)));
|
||||
|
||||
create index vehicles_idx_v_model_desc on vehicles((lower(v_model_desc)));
|
||||
create index vehicles_idx_v_make_desc on vehicles((lower(v_make_desc)));
|
||||
type: run_sql
|
||||
Reference in New Issue
Block a user