Skip to content

Commit 500d0d8

Browse files
committed
Fix Enum to PS DB
1 parent efdfe2e commit 500d0d8

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

biofilter/db/models/model_curation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ class CurationConflict(Base):
5151
entity_id = Column(Integer, nullable=True)
5252
identifier = Column(String, nullable=False) # Ex: "HGNC:40594"
5353
existing_identifier = Column(String, nullable=False) # Ex: "HGNC:58098"
54-
status = Column(Enum(ConflictStatus), default=ConflictStatus.pending)
55-
resolution = Column(Enum(ConflictResolution), nullable=True)
54+
# status = Column(Enum(ConflictStatus), default=ConflictStatus.pending)
55+
# resolution = Column(Enum(ConflictResolution), nullable=True)
56+
status = Column(Enum(ConflictStatus, name="conflict_status_enum"), default=ConflictStatus.pending)
57+
resolution = Column(Enum(ConflictResolution, name="conflict_resolution_enum"), nullable=True)
58+
5659
description = Column(Text, nullable=True)
5760
notes = Column(Text, nullable=True)
5861

biofilter/db/models/model_genes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class GeneLocation(Base):
315315
chromosome = Column(String(5), nullable=True)
316316
start = Column(Integer, nullable=True)
317317
end = Column(Integer, nullable=True)
318-
strand = Column(Enum("+", "-"), nullable=True)
318+
strand = Column(Enum("+", "-", name="strand_enum"), nullable=True)
319319

320320
assembly = Column(String(20), nullable=True, default="GRCh38")
321321
# TODO: Create Model to Assembles

0 commit comments

Comments
 (0)