-- +goose Up
-- +goose StatementBegin
ALTER TABLE "Events" RENAME COLUMN Datacenter to DatacenterName;
ALTER TABLE "Events" RENAME COLUMN ComputeResource to ComputeResourceName;
ALTER TABLE "Events" ADD COLUMN DatacenterId TEXT;
ALTER TABLE "Events" ADD COLUMN ComputeResourceId TEXT;
ALTER TABLE "Events" ADD COLUMN VmName TEXT;
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
ALTER TABLE "Events" DROP COLUMN VmName;
ALTER TABLE "Updates" DROP COLUMN ComputeResourceId;
ALTER TABLE "Updates" DROP COLUMN DatacenterId;
ALTER TABLE "Events" RENAME COLUMN ComputeResourceName to ComputeResource;
ALTER TABLE "Events" RENAME COLUMN DatacenterName to Datacenter;
-- +goose StatementEnd
