From 473523045e230ae09e591d70036a820e94dc66c4 Mon Sep 17 00:00:00 2001 From: Kevin Hashimoto Date: Fri, 20 Dec 2024 16:23:13 -0800 Subject: [PATCH] fix: lng end use type text --- .../versions/2024-12-21-00-18_5fbcb508c1be.py | 40 +++++++++++++++++++ .../db/seeders/common/seed_fuel_data.json | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 backend/lcfs/db/migrations/versions/2024-12-21-00-18_5fbcb508c1be.py diff --git a/backend/lcfs/db/migrations/versions/2024-12-21-00-18_5fbcb508c1be.py b/backend/lcfs/db/migrations/versions/2024-12-21-00-18_5fbcb508c1be.py new file mode 100644 index 000000000..2477b1308 --- /dev/null +++ b/backend/lcfs/db/migrations/versions/2024-12-21-00-18_5fbcb508c1be.py @@ -0,0 +1,40 @@ +"""LNG end use naming change + +Revision ID: 5fbcb508c1be +Revises: 59873cafbcd8 +Create Date: 2024-12-21 00:18:12.324520 + +""" + +import sqlalchemy as sa +from alembic import op + +# revision identifiers, used by Alembic. +revision = "5fbcb508c1be" +down_revision = "59873cafbcd8" +branch_labels = None +depends_on = None + + +def upgrade() -> None: + # ### commands auto generated by Alembic - please adjust! ### + op.execute( + """ + UPDATE end_use_type + SET type = 'Compression-ignition engine- Marine, with methane slip reduction kit- Operated within 26 to 75% of load range' + WHERE end_use_type_id = 19 + """ + ) + # ### end Alembic commands ### + + +def downgrade() -> None: + # ### commands auto generated by Alembic - please adjust! ### + op.execute( + """ + UPDATE end_use_type + SET type = 'Compression-ignition engine- Marine, with methane slip reduction kit- Operated within 51 to 75% of load range' + WHERE end_use_type_id = 19 + """ + ) + # ### end Alembic commands ### diff --git a/backend/lcfs/db/seeders/common/seed_fuel_data.json b/backend/lcfs/db/seeders/common/seed_fuel_data.json index 3584662f2..57b1178c4 100644 --- a/backend/lcfs/db/seeders/common/seed_fuel_data.json +++ b/backend/lcfs/db/seeders/common/seed_fuel_data.json @@ -355,7 +355,7 @@ }, { "end_use_type_id": 19, - "type": "Compression-ignition engine- Marine, with methane slip reduction kit- Operated within 51 to 75% of load range", + "type": "Compression-ignition engine- Marine, with methane slip reduction kit- Operated within 26 to 75% of load range", "intended_use": true }, {