Skip to content

Commit

Permalink
Add tags column to cross_section_location and windshielding_1d
Browse files Browse the repository at this point in the history
  • Loading branch information
margrietpalm committed Dec 4, 2024
1 parent 65da827 commit 155cdf3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Changelog of threedi-schema

- Significantly speed up migration to schema 228 for schematisations with many 1D components
- Remove support for python 3.8 and require python 3.9 as minimal version
- Add tags column to cross_section_location and windshielding_1d


0.228.1 (2024-11-26)
Expand Down
2 changes: 2 additions & 0 deletions threedi_schema/domain/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,14 @@ class Windshielding(Base):
northwest = Column(Float)
geom = Column(Geometry("POINT"), nullable=False)
channel_id = Column(Integer)
tags = Column(Text)


class CrossSectionLocation(Base):
__tablename__ = "cross_section_location"
id = Column(Integer, primary_key=True)
code = Column(String(100))
tags = Column(Text)
reference_level = Column(Float)
friction_type = Column(IntegerEnum(constants.FrictionType))
friction_value = Column(Float)
Expand Down
3 changes: 2 additions & 1 deletion threedi_schema/migrations/versions/0228_upgrade_db_1D.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import sqlalchemy as sa
from alembic import op
from sqlalchemy import Column, Float, func, Integer, select, String
from sqlalchemy import Column, func, Integer, select, String
from sqlalchemy.orm import declarative_base, Session

from threedi_schema.domain import constants, models
Expand Down Expand Up @@ -83,6 +83,7 @@
"pump": ["connection_node_end_id", "zoom_category", "classification"]
}


RETYPE_COLUMNS = {}


Expand Down

0 comments on commit 155cdf3

Please sign in to comment.