-- +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 "Events" DROP COLUMN "ComputeResourceId";
ALTER TABLE "Events" DROP COLUMN "DatacenterId";
ALTER TABLE "Events" RENAME COLUMN "ComputeResourceName" TO "ComputeResource";
ALTER TABLE "Events" RENAME COLUMN "DatacenterName" TO "Datacenter";
-- +goose StatementEnd
