From ea9e76830dd2cd10e799bdcde7db596268a28b24 Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Fri, 24 Jan 2025 14:09:39 +0100 Subject: [PATCH 1/2] Rename Tags table to tags --- threedi_schema/domain/models.py | 2 +- threedi_schema/migrations/versions/0223_upgrade_db_inflow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/threedi_schema/domain/models.py b/threedi_schema/domain/models.py index 197ffdf..5eba063 100644 --- a/threedi_schema/domain/models.py +++ b/threedi_schema/domain/models.py @@ -683,7 +683,7 @@ class ExchangeLine(Base): class Tags(Base): - __tablename__ = "tag" + __tablename__ = "tags" id = Column(Integer, primary_key=True) description = Column(Text) diff --git a/threedi_schema/migrations/versions/0223_upgrade_db_inflow.py b/threedi_schema/migrations/versions/0223_upgrade_db_inflow.py index 2a060b5..145d14d 100644 --- a/threedi_schema/migrations/versions/0223_upgrade_db_inflow.py +++ b/threedi_schema/migrations/versions/0223_upgrade_db_inflow.py @@ -79,7 +79,7 @@ Column("tags", Text), Column("distribution", Text) ], - "tag": [ + "tags": [ Column("description", Text) ] } From 0fa81c2b6bc327415118651f6d2b4fd291a13d46 Mon Sep 17 00:00:00 2001 From: Margriet Palm Date: Fri, 24 Jan 2025 15:01:26 +0100 Subject: [PATCH 2/2] update changes --- CHANGES.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index e22dfe7..d66d29d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,7 +5,7 @@ Changelog of threedi-schema 0.300.1 (unreleased) -------------------- -- Nothing changed yet. +- Fix incorrect naming of table Tags as tag instead of tags in migration 223 0.300.0 (2025-01-24)