-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-0.2.0' into chore/alex-etl-launch
- Loading branch information
Showing
53 changed files
with
1,597 additions
and
472 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
backend/lcfs/db/migrations/versions/2024-12-20-05-17_59873cafbcd8.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,40 @@ | ||
"""update other diesel | ||
Revision ID: 59873cafbcd8 | ||
Revises: 851e09cf8661 | ||
Create Date: 2024-12-20 05:17:40.638826 | ||
""" | ||
|
||
import sqlalchemy as sa | ||
from alembic import op | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "59873cafbcd8" | ||
down_revision = "851e09cf8661" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.execute( | ||
""" | ||
UPDATE fuel_type | ||
SET fossil_derived = false, other_uses_fossil_derived = false | ||
WHERE fuel_type = 'Other diesel' | ||
""" | ||
) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade() -> None: | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.execute( | ||
""" | ||
UPDATE fuel_type | ||
SET fossil_derived = true, other_uses_fossil_derived = true | ||
WHERE fuel_type = 'Other diesel' | ||
""" | ||
) | ||
# ### end Alembic commands ### |
40 changes: 40 additions & 0 deletions
40
backend/lcfs/db/migrations/versions/2024-12-21-00-18_5fbcb508c1be.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,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 ### |
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
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
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
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
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
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
Oops, something went wrong.