diff --git a/CHANGES.rst b/CHANGES.rst index bebd065..4da0396 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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) diff --git a/threedi_schema/domain/models.py b/threedi_schema/domain/models.py index 6a7e658..c80b0b1 100644 --- a/threedi_schema/domain/models.py +++ b/threedi_schema/domain/models.py @@ -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) diff --git a/threedi_schema/migrations/versions/0228_upgrade_db_1D.py b/threedi_schema/migrations/versions/0228_upgrade_db_1D.py index a2b6b63..3828927 100644 --- a/threedi_schema/migrations/versions/0228_upgrade_db_1D.py +++ b/threedi_schema/migrations/versions/0228_upgrade_db_1D.py @@ -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 @@ -83,6 +83,7 @@ "pump": ["connection_node_end_id", "zoom_category", "classification"] } + RETYPE_COLUMNS = {}