diff --git a/backend/alembic/versions/3282eafd6bb4_create_van_location_table.py b/backend/alembic/versions/3282eafd6bb4_create_van_location_table.py index 9ade0a94..e96ea329 100644 --- a/backend/alembic/versions/3282eafd6bb4_create_van_location_table.py +++ b/backend/alembic/versions/3282eafd6bb4_create_van_location_table.py @@ -23,7 +23,7 @@ def upgrade() -> None: "van_location", sa.Column("id", sa.Integer, primary_key=True), sa.Column( - "created_at", sa.DateTime, nullable=False, server_default=sa.func.now() + "created_at", sa.DateTime, nullable=False, server_default=sa.func.now() # pylint: disable=all ), sa.Column("session_id", sa.Integer, nullable=False), sa.Column("lat", sa.Float, nullable=False), diff --git a/backend/alembic/versions/43451376c0bf_create_van_tracker_session_table.py b/backend/alembic/versions/43451376c0bf_create_van_tracker_session_table.py index 319fa10e..deb4d2e4 100644 --- a/backend/alembic/versions/43451376c0bf_create_van_tracker_session_table.py +++ b/backend/alembic/versions/43451376c0bf_create_van_tracker_session_table.py @@ -23,7 +23,7 @@ def upgrade() -> None: "van_tracker_session", sa.Column("id", sa.Integer, primary_key=True), sa.Column( - "created_at", sa.DateTime, nullable=False, server_default=sa.func.now() + "created_at", sa.DateTime, nullable=False, server_default=sa.func.now() # pylint: disable=all ), sa.Column( "updated_at", diff --git a/backend/src/model/van_tracker_session.py b/backend/src/model/van_tracker_session.py index b1448de8..7171c172 100644 --- a/backend/src/model/van_tracker_session.py +++ b/backend/src/model/van_tracker_session.py @@ -14,10 +14,10 @@ class VanTrackerSession(Base): primary_key=True, autoincrement=True, nullable=False ) created_at: Mapped[datetime] = mapped_column( - TZDateTime, nullable=False, server_default=func.now() + TZDateTime, nullable=False, server_default=func.now() # pylint: disable=all ) updated_at: Mapped[datetime] = mapped_column( - TZDateTime, nullable=False, server_default=func.now(), onupdate=func.now() + TZDateTime, nullable=False, server_default=func.now(), onupdate=func.now() # pylint: disable=all ) van_guid: Mapped[str] = mapped_column(nullable=False) route_id: Mapped[int] = mapped_column(nullable=False)