Skip to content

Commit

Permalink
harmonize DB definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mki-c2c committed Sep 12, 2023
1 parent 712f997 commit 18150ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyramid_oereb/contrib/data_sources/standard/models/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ class Disclaimer(Base):
id = Column(String, primary_key=True)
title = Column(JSONType, nullable=False)
content = Column(JSONType, nullable=False)
# the custom class Serial may be used to obtain an auto incremented extract index in the DB
# however, the better choice was made to make the field optional / nullable
# extract_index = Column(Serial)
extract_index = Column(Integer, nullable=True)

Expand Down Expand Up @@ -279,7 +281,7 @@ class GeneralInformation(Base):
id = Column(String, primary_key=True)
title = Column(JSONType, nullable=False)
content = Column(JSONType, nullable=False)
extract_index = Column(Integer)
extract_index = Column(Integer, nullable=True)


class ThemeDocument(Base):
Expand Down

0 comments on commit 18150ba

Please sign in to comment.