Additional database indexing.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."job_conversations_jobid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "job_conversations_jobid" on
|
||||
"public"."job_conversations" using btree ("jobid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."job_conversations_conversationid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "job_conversations_conversationid" on
|
||||
"public"."job_conversations" using btree ("conversationid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."job_conversations_job_and_conversation_id";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "job_conversations_job_and_conversation_id" on
|
||||
"public"."job_conversations" using btree ("conversationid", "jobid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."idx_payments_jobid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "idx_payments_jobid" on
|
||||
"public"."payments" using btree ("jobid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."idx_mixdata_jobid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "idx_mixdata_jobid" on
|
||||
"public"."mixdata" using btree ("jobid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."idx_notes_jobid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "idx_notes_jobid" on
|
||||
"public"."notes" using btree ("jobid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."idx_users_authid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "idx_users_authid" on
|
||||
"public"."users" using btree ("authid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."idx_employees_shopid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "idx_employees_shopid" on
|
||||
"public"."employees" using btree ("shopid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."idx_employee_vacation_employeeid";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "idx_employee_vacation_employeeid" on
|
||||
"public"."employee_vacation" using btree ("employeeid");
|
||||
@@ -0,0 +1 @@
|
||||
DROP INDEX IF EXISTS "public"."idx_counters_shopid_type";
|
||||
@@ -0,0 +1,2 @@
|
||||
CREATE INDEX "idx_counters_shopid_type" on
|
||||
"public"."counters" using btree ("shopid", "countertype");
|
||||
@@ -0,0 +1,3 @@
|
||||
-- Could not auto-generate a down migration.
|
||||
-- Please write an appropriate down migration for the SQL below:
|
||||
-- CREATE INDEX idx_jobs_inproduction_true ON jobs(inproduction) WHERE inproduction = true;
|
||||
1
hasura/migrations/1682699741754_run_sql_migration/up.sql
Normal file
1
hasura/migrations/1682699741754_run_sql_migration/up.sql
Normal file
@@ -0,0 +1 @@
|
||||
CREATE INDEX idx_jobs_inproduction_true ON jobs(inproduction) WHERE inproduction = true;
|
||||
Reference in New Issue
Block a user