diff --git a/hasura/migrations/1741904378259_create_index_notificiations_idx_jobs/down.sql b/hasura/migrations/1741904378259_create_index_notificiations_idx_jobs/down.sql new file mode 100644 index 000000000..a4029e3f4 --- /dev/null +++ b/hasura/migrations/1741904378259_create_index_notificiations_idx_jobs/down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS "public"."notificiations_idx_jobs"; diff --git a/hasura/migrations/1741904378259_create_index_notificiations_idx_jobs/up.sql b/hasura/migrations/1741904378259_create_index_notificiations_idx_jobs/up.sql new file mode 100644 index 000000000..8fd3f3f34 --- /dev/null +++ b/hasura/migrations/1741904378259_create_index_notificiations_idx_jobs/up.sql @@ -0,0 +1,2 @@ +CREATE INDEX "notificiations_idx_jobs" on + "public"."notifications" using btree ("jobid"); diff --git a/hasura/migrations/1741904395934_create_index_notifications_idx_associations/down.sql b/hasura/migrations/1741904395934_create_index_notifications_idx_associations/down.sql new file mode 100644 index 000000000..17b162d35 --- /dev/null +++ b/hasura/migrations/1741904395934_create_index_notifications_idx_associations/down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS "public"."notifications_idx_associations"; diff --git a/hasura/migrations/1741904395934_create_index_notifications_idx_associations/up.sql b/hasura/migrations/1741904395934_create_index_notifications_idx_associations/up.sql new file mode 100644 index 000000000..9d131b3b2 --- /dev/null +++ b/hasura/migrations/1741904395934_create_index_notifications_idx_associations/up.sql @@ -0,0 +1,2 @@ +CREATE INDEX "notifications_idx_associations" on + "public"."notifications" using btree ("associationid"); diff --git a/hasura/migrations/1741904614090_run_sql_migration/down.sql b/hasura/migrations/1741904614090_run_sql_migration/down.sql new file mode 100644 index 000000000..90dce4b23 --- /dev/null +++ b/hasura/migrations/1741904614090_run_sql_migration/down.sql @@ -0,0 +1,3 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- CREATE INDEX idx_notifications_created_at_not_read ON notifications(created_at desc, read) where read is null; diff --git a/hasura/migrations/1741904614090_run_sql_migration/up.sql b/hasura/migrations/1741904614090_run_sql_migration/up.sql new file mode 100644 index 000000000..ecca4610e --- /dev/null +++ b/hasura/migrations/1741904614090_run_sql_migration/up.sql @@ -0,0 +1 @@ +CREATE INDEX idx_notifications_created_at_not_read ON notifications(created_at desc, read) where read is null; diff --git a/hasura/migrations/1741904805838_run_sql_migration/down.sql b/hasura/migrations/1741904805838_run_sql_migration/down.sql new file mode 100644 index 000000000..f6b9c6e6e --- /dev/null +++ b/hasura/migrations/1741904805838_run_sql_migration/down.sql @@ -0,0 +1,3 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- CREATE INDEX idx_notifications_associations_not_read ON notifications(associationid, read) where read is null; diff --git a/hasura/migrations/1741904805838_run_sql_migration/up.sql b/hasura/migrations/1741904805838_run_sql_migration/up.sql new file mode 100644 index 000000000..7950b3bd9 --- /dev/null +++ b/hasura/migrations/1741904805838_run_sql_migration/up.sql @@ -0,0 +1 @@ +CREATE INDEX idx_notifications_associations_not_read ON notifications(associationid, read) where read is null;