Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename heat_rate_mmbtu_mwh -> unit_heat_rate_mmbtu_per_mwh... again #3029

Merged
merged 7 commits into from
Nov 16, 2023
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with there being several migration versions in here changing? Including older ones? Is this search-and-replace gone wild? It seems like the older migrations might actually need to refer to the older column name.

Alternatively, should we wipe all the migrations periodically to keep too many layers from building up? Since I don't think we actually intend for it to be possible to migrate between all database versions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21309,7 +21309,7 @@ def upgrade() -> None:
comment="Total annual heat content of fuel consumed by a plant part record in the plant parts list.",
),
sa.Column(
"heat_rate_mmbtu_mwh_eia",
"unit_heat_rate_mmbtu_per_mwh_eia",
sa.Float(),
nullable=True,
comment="Fuel content per unit of electricity generated. Coming from MCOE calculation.",
Expand Down Expand Up @@ -21802,7 +21802,7 @@ def upgrade() -> None:
comment="Simplified fuel type code used in PUDL",
),
sa.Column(
"heat_rate_mmbtu_mwh_ferc1",
"unit_heat_rate_mmbtu_per_mwh_ferc1",
sa.Float(),
nullable=True,
comment="Fuel content per unit of electricity generated. Calculated from FERC reported fuel consumption and net generation.",
Expand Down

This file was deleted.