mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
removed create_type from enum (only created if it doesn't exist)
This commit is contained in:
parent
e5d7a3ff14
commit
d693a0df50
1 changed files with 1 additions and 1 deletions
|
|
@ -188,7 +188,7 @@ class EnergyAssessmentDocuments(Base):
|
|||
id = Column(BigInteger, primary_key=True, autoincrement=True)
|
||||
uprn = Column(BigInteger, nullable=False)
|
||||
energy_assessment_id = Column(BigInteger, ForeignKey('energy_assessments.id'), nullable=False)
|
||||
document_type = Column(PgEnum(DocumentTypeEnum, name="document_type", create_type=False), nullable=False)
|
||||
document_type = Column(PgEnum(DocumentTypeEnum, name="document_type"), nullable=False)
|
||||
document_location = Column(Text, nullable=False)
|
||||
uploaded_at = Column(DateTime(timezone=True), nullable=False, default=datetime.utcnow)
|
||||
scenario_id = Column(BigInteger, ForeignKey('energy_assessment_scenarios.id'), nullable=True)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue