Skip to content

Commit

Permalink
refactor: remove description as primary key from TransactionView
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-valiollahi committed Jan 31, 2025
1 parent ccaa6e0 commit 87aec8d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ def upgrade() -> None:
CREATE UNIQUE INDEX mv_transaction_aggregate_unique_idx
ON mv_transaction_aggregate (
transaction_id,
description,
transaction_type
);
"""
Expand Down
1 change: 0 additions & 1 deletion backend/lcfs/db/models/transaction/TransactionView.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class TransactionView(BaseModel):
)
description = Column(
String,
primary_key=True,
comment="Brief description of the transaction.",
)
compliance_period = Column(
Expand Down

0 comments on commit 87aec8d

Please sign in to comment.