diff --git a/config/analytics_blocklist.yml b/config/analytics_blocklist.yml index bf1a1ef8447..9bdc915921c 100644 --- a/config/analytics_blocklist.yml +++ b/config/analytics_blocklist.yml @@ -98,13 +98,6 @@ - generation_date - created_at - updated_at - :provider_mid_cycle_reports: - - id - - statistics - - publication_date - - provider_id - - created_at - - updated_at :national_recruitment_performance_reports: - id - statistics @@ -113,12 +106,6 @@ - generation_date - created_at - updated_at - :national_mid_cycle_reports: - - id - - statistics - - publication_date - - created_at - - updated_at :vendor_api_users: - id - full_name diff --git a/db/migrate/20240612093124_drop_national_mid_cycle_report_table.rb b/db/migrate/20240612093124_drop_national_mid_cycle_report_table.rb new file mode 100644 index 00000000000..c4535c34e83 --- /dev/null +++ b/db/migrate/20240612093124_drop_national_mid_cycle_report_table.rb @@ -0,0 +1,9 @@ +class DropNationalMidCycleReportTable < ActiveRecord::Migration[7.1] + def up + drop_table :national_mid_cycle_reports + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/migrate/20240612093136_drop_provider_mid_cycle_report_table.rb b/db/migrate/20240612093136_drop_provider_mid_cycle_report_table.rb new file mode 100644 index 00000000000..4ff33ee3410 --- /dev/null +++ b/db/migrate/20240612093136_drop_provider_mid_cycle_report_table.rb @@ -0,0 +1,9 @@ +class DropProviderMidCycleReportTable < ActiveRecord::Migration[7.1] + def up + drop_table :provider_mid_cycle_reports + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end diff --git a/db/schema.rb b/db/schema.rb index d796917d624..7279b5bd609 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_05_28_092412) do +ActiveRecord::Schema[7.1].define(version: 2024_06_12_093136) do create_sequence "qualifications_public_id_seq", start: 120000 # These are extensions that must be enabled in order to support this database @@ -575,13 +575,6 @@ t.date "publication_date" end - create_table "national_mid_cycle_reports", force: :cascade do |t| - t.json "statistics" - t.date "publication_date" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - create_table "national_recruitment_performance_reports", force: :cascade do |t| t.json "statistics" t.integer "cycle_week", null: false @@ -638,15 +631,6 @@ t.index ["provider_user_id"], name: "index_provider_agreements_on_provider_user_id" end - create_table "provider_mid_cycle_reports", force: :cascade do |t| - t.json "statistics" - t.date "publication_date" - t.bigint "provider_id", null: false - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.index ["provider_id"], name: "index_provider_mid_cycle_reports_on_provider_id" - end - create_table "provider_recruitment_performance_reports", force: :cascade do |t| t.bigint "provider_id", null: false t.json "statistics" @@ -915,7 +899,6 @@ add_foreign_key "offers", "application_choices", on_delete: :cascade add_foreign_key "provider_agreements", "provider_users" add_foreign_key "provider_agreements", "providers" - add_foreign_key "provider_mid_cycle_reports", "providers" add_foreign_key "provider_recruitment_performance_reports", "providers" add_foreign_key "provider_relationship_permissions", "providers", column: "ratifying_provider_id" add_foreign_key "provider_relationship_permissions", "providers", column: "training_provider_id" diff --git a/docs/domain-model.png b/docs/domain-model.png index 6ef3eba77f1..5d8ee658b41 100644 Binary files a/docs/domain-model.png and b/docs/domain-model.png differ