-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
generator_operating_date
to 860M changelog table (#3751)
* Add generator_operating_date to 860M changelog table * Update release notes
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
migrations/versions/52aa9f44b6a7_add_generator_operating_date_to_860_.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
"""Add generator_operating_date to 860 changelog table | ||
Revision ID: 52aa9f44b6a7 | ||
Revises: 49d2f4f7d7b7 | ||
Create Date: 2024-07-29 18:15:06.462350 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '52aa9f44b6a7' | ||
down_revision = '49d2f4f7d7b7' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('core_eia860m__changelog_generators', schema=None) as batch_op: | ||
batch_op.add_column(sa.Column('generator_operating_date', sa.Date(), nullable=True, comment='Date the generator began commercial operation. If harvested values are inconsistent, we default to using the most recently reported date.')) | ||
|
||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
with op.batch_alter_table('core_eia860m__changelog_generators', schema=None) as batch_op: | ||
batch_op.drop_column('generator_operating_date') | ||
|
||
# ### end Alembic commands ### |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters