Skip to content

Commit

Permalink
Revert "Remove less efficient sync indexes (#1901)"
Browse files Browse the repository at this point in the history
This reverts commit be6a683.
  • Loading branch information
kitallis committed Dec 24, 2020
1 parent 3f0ab31 commit 24feffe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 0 additions & 9 deletions db/migrate/20201218062046_remove_old_sync_indexes.rb

This file was deleted.

7 changes: 6 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2020_12_18_062046) do
ActiveRecord::Schema.define(version: 2020_12_18_061336) do

# These are extensions that must be enabled in order to support this database
enable_extension "ltree"
Expand Down Expand Up @@ -69,6 +69,7 @@
t.index ["patient_id", "scheduled_date"], name: "index_appointments_on_patient_id_and_scheduled_date", order: { scheduled_date: :desc }
t.index ["patient_id", "updated_at"], name: "index_appointments_on_patient_id_and_updated_at"
t.index ["patient_id"], name: "index_appointments_on_patient_id"
t.index ["updated_at"], name: "index_appointments_on_updated_at"
t.index ["user_id"], name: "index_appointments_on_user_id"
end

Expand All @@ -89,6 +90,7 @@
t.index ["patient_id", "updated_at"], name: "index_blood_pressures_on_patient_id_and_updated_at"
t.index ["patient_id"], name: "index_blood_pressures_on_patient_id"
t.index ["recorded_at"], name: "index_blood_pressures_on_recorded_at"
t.index ["updated_at"], name: "index_blood_pressures_on_updated_at"
t.index ["user_id"], name: "index_blood_pressures_on_user_id"
end

Expand All @@ -109,6 +111,7 @@
t.index ["facility_id"], name: "index_blood_sugars_on_facility_id"
t.index ["patient_id", "updated_at"], name: "index_blood_sugars_on_patient_id_and_updated_at"
t.index ["patient_id"], name: "index_blood_sugars_on_patient_id"
t.index ["updated_at"], name: "index_blood_sugars_on_updated_at"
t.index ["user_id"], name: "index_blood_sugars_on_user_id"
end

Expand Down Expand Up @@ -406,6 +409,7 @@
t.index ["registration_facility_id"], name: "index_patients_on_registration_facility_id"
t.index ["registration_user_id"], name: "index_patients_on_registration_user_id"
t.index ["reminder_consent"], name: "index_patients_on_reminder_consent"
t.index ["updated_at"], name: "index_patients_on_updated_at"
end

create_table "phone_number_authentications", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
Expand Down Expand Up @@ -446,6 +450,7 @@
t.index ["patient_id", "updated_at"], name: "index_prescription_drugs_on_patient_id_and_updated_at"
t.index ["patient_id"], name: "index_prescription_drugs_on_patient_id"
t.index ["teleconsultation_id"], name: "index_prescription_drugs_on_teleconsultation_id"
t.index ["updated_at"], name: "index_prescription_drugs_on_updated_at"
t.index ["user_id"], name: "index_prescription_drugs_on_user_id"
end

Expand Down

0 comments on commit 24feffe

Please sign in to comment.