Skip to content

Commit d57d7a7

Browse files
committed
Drop patient_vaccination_statuses table
In the previous commits we removed usage of this table. Now that this has been deployed we can safely remove the table. Jira-Issue: MAV-2660
1 parent 5f638a2 commit d57d7a7

2 files changed

Lines changed: 7 additions & 17 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
class DropPatientVaccinationStatuses < ActiveRecord::Migration[8.1]
4+
def up
5+
drop_table :patient_vaccination_statuses
6+
end
7+
end

db/schema.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -686,21 +686,6 @@
686686
t.index ["status"], name: "index_patient_triage_statuses_on_status"
687687
end
688688

689-
create_table "patient_vaccination_statuses", force: :cascade do |t|
690-
t.integer "academic_year", null: false
691-
t.integer "dose_sequence"
692-
t.date "latest_date"
693-
t.bigint "latest_location_id"
694-
t.integer "latest_session_status"
695-
t.bigint "patient_id", null: false
696-
t.enum "programme_type", null: false, enum_type: "programme_type"
697-
t.integer "status", default: 0, null: false
698-
t.index ["academic_year", "patient_id"], name: "idx_on_academic_year_patient_id_9c400fc863"
699-
t.index ["latest_location_id"], name: "index_patient_vaccination_statuses_on_latest_location_id"
700-
t.index ["patient_id", "programme_type", "academic_year"], name: "idx_on_patient_id_programme_type_academic_year_962639d2ac", unique: true
701-
t.index ["status"], name: "index_patient_vaccination_statuses_on_status"
702-
end
703-
704689
create_table "patients", force: :cascade do |t|
705690
t.string "address_line_1"
706691
t.string "address_line_2"
@@ -1115,8 +1100,6 @@
11151100
add_foreign_key "patient_teams", "patients", on_delete: :cascade
11161101
add_foreign_key "patient_teams", "teams", on_delete: :cascade
11171102
add_foreign_key "patient_triage_statuses", "patients", on_delete: :cascade
1118-
add_foreign_key "patient_vaccination_statuses", "locations", column: "latest_location_id"
1119-
add_foreign_key "patient_vaccination_statuses", "patients", on_delete: :cascade
11201103
add_foreign_key "patients", "locations", column: "gp_practice_id"
11211104
add_foreign_key "patients", "locations", column: "school_id"
11221105
add_foreign_key "pds_search_results", "patients"

0 commit comments

Comments
 (0)