Skip to content

Commit 7a10ee1

Browse files
committed
fix: sqlalchemy warning
1 parent 741ec5b commit 7a10ee1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testgen/common/models/data_column.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from uuid import UUID, uuid4
22

3-
from sqlalchemy import Boolean, Column, ForeignKey, String
3+
from sqlalchemy import Boolean, Column, ForeignKey, String, asc
44
from sqlalchemy.dialects import postgresql
55

66
from testgen.common.models.entity import Entity
@@ -17,7 +17,7 @@ class DataColumnChars(Entity):
1717
excluded_data_element: bool | None = Column(Boolean, nullable=True)
1818
pii_flag: str | None = Column(String(50), nullable=True)
1919

20-
_default_order_by = (id,)
20+
_default_order_by = (asc(id),)
2121

2222
# Unmapped columns: table_id, ordinal_position, general_type, column_type,
2323
# db_data_type, functional_data_type, description, critical_data_element,

0 commit comments

Comments
 (0)