diff --git a/migrations/2023-07-04-153335_add_optimized_indexes/up.sql b/migrations/2023-07-04-153335_add_optimized_indexes/up.sql index c2911df79c..eff1ada110 100644 --- a/migrations/2023-07-04-153335_add_optimized_indexes/up.sql +++ b/migrations/2023-07-04-153335_add_optimized_indexes/up.sql @@ -1,5 +1,5 @@ -- Create an admin person index -create index idx_person_admin on person (admin); +create index if not exists idx_person_admin on person (admin) where admin; -- Compound indexes, using featured_, then the other sorts, proved to be much faster -- Drop the old indexes diff --git a/migrations/2023-07-05-000058_person-admin/down.sql b/migrations/2023-07-05-000058_person-admin/down.sql deleted file mode 100644 index 557665906c..0000000000 --- a/migrations/2023-07-05-000058_person-admin/down.sql +++ /dev/null @@ -1 +0,0 @@ -drop index idx_person_admin; \ No newline at end of file diff --git a/migrations/2023-07-05-000058_person-admin/up.sql b/migrations/2023-07-05-000058_person-admin/up.sql deleted file mode 100644 index 0a51da9117..0000000000 --- a/migrations/2023-07-05-000058_person-admin/up.sql +++ /dev/null @@ -1 +0,0 @@ -create index idx_person_admin on person(admin) where admin; -- allow quickly finding all admins (PersonView::admins) \ No newline at end of file