Skip to content

Commit

Permalink
Drop unused LifecycleEvent table
Browse files Browse the repository at this point in the history
This was added back in 2008 in commit d866a691c57073d44d24eba284f962e62f87a706
and isn't used.  It was never reportable but was available in the API.

Part of ManageIQ/manageiq#21204
  • Loading branch information
jrafanie committed Sep 9, 2021
1 parent 3579480 commit f4d8069
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
20 changes: 20 additions & 0 deletions db/migrate/20210909212144_drop_lifecycle_events.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
class DropLifecycleEvents < ActiveRecord::Migration[6.0]
def up
drop_table :lifecycle_events
end

def down
create_table "lifecycle_events", force: :cascade do |t|
t.string "guid"
t.string "status"
t.string "event"
t.string "message"
t.string "location"
t.bigint "vm_or_template_id"
t.string "created_by"
t.datetime "created_on"
t.index ["guid"], name: "index_lifecycle_events_on_guid", unique: true
t.index ["vm_or_template_id"], name: "index_lifecycle_events_on_vm_id"
end
end
end
1 change: 0 additions & 1 deletion spec/support/table_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ iso_images
jobs
key_pairs_vms
lans
lifecycle_events
load_balancer_health_check_members
load_balancer_health_checks
load_balancer_listener_pools
Expand Down

0 comments on commit f4d8069

Please sign in to comment.