LCFS - Add is_legacy
Field to ProvisionOfTheAct
and Migrate TFRS Provisions
#1552
Labels
Added Banana 4 Scale
Label for tickets added mid-sprint
Medium
Medium priority
Task
Work that does not directly impact the user
Description:
Introduce an
is_legacy
column to theprovision_of_the_act
table to differentiate legacy provisions from TFRS. Use an Alembic migration to insert TFRS provisions into LCFS, combiningdescription
andsection reference
into a singledescription
field and settingis_legacy = true
. This ensures accurate representation of historical data.Purpose and benefit to user:
Supports historical analysis by accurately integrating legacy legislative provisions from TFRS, enabling comprehensive regulatory and compliance comparisons.
Acceptance Criteria:
provision_of_the_act
table includes anis_legacy
column with defaultfalse
.is_legacy = true
and correctly mapped descriptions.Development Checklist:
Schema Update:
is_legacy
column toprovision_of_the_act
with defaultfalse
.is_legacy
.Data Mapping:
description
andsection reference
into LCFSdescription
.Alembic Migration:
is_legacy = true
.Validation:
is_legacy
.Deployment:
Notes:
is_legacy
filtering and queries.The text was updated successfully, but these errors were encountered: