Skip to content

Commit

Permalink
Merge pull request #9460 from DFE-Digital/1711-drop-tables
Browse files Browse the repository at this point in the history
[1711] Drop mid cycle report tables
  • Loading branch information
elceebee authored Jun 12, 2024
2 parents 34084fe + 6890125 commit 8f9ea76
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 31 deletions.
13 changes: 0 additions & 13 deletions config/analytics_blocklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
19 changes: 1 addition & 18 deletions 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[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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
Binary file modified docs/domain-model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8f9ea76

Please sign in to comment.