From bd340fece6b5917b1438932cac7436fa57aab729 Mon Sep 17 00:00:00 2001 From: yangdx Date: Wed, 16 Jul 2025 14:27:52 +0800 Subject: [PATCH] Fix timestamp column migration comment typos - Correct timezone-related comments - Fix typo in debug log message - Update migration success message - Maintain same migration logic --- lightrag/kg/postgres_impl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lightrag/kg/postgres_impl.py b/lightrag/kg/postgres_impl.py index 128e96be..98a09f9d 100644 --- a/lightrag/kg/postgres_impl.py +++ b/lightrag/kg/postgres_impl.py @@ -181,7 +181,7 @@ class PostgreSQLDB: ) async def _migrate_timestamp_columns(self): - """Migrate timestamp columns in tables to timezone-aware types, assuming original data is in UTC time""" + """Migrate timestamp columns in tables to witimezone-free types, assuming original data is in UTC time""" # Tables and columns that need migration tables_to_migrate = { "LIGHTRAG_VDB_ENTITY": ["create_time", "update_time"], @@ -211,7 +211,7 @@ class PostgreSQLDB: data_type = column_info.get("data_type") if data_type == "timestamp without time zone": logger.debug( - f"Column {table_name}.{column_name} is already timezone-aware, no migration needed" + f"Column {table_name}.{column_name} is already witimezone-free, no migration needed" ) continue @@ -227,7 +227,7 @@ class PostgreSQLDB: await self.execute(migration_sql) logger.info( - f"Successfully migrated {table_name}.{column_name} to timezone-aware type" + f"Successfully migrated {table_name}.{column_name} to timezone-free type" ) except Exception as e: # Log error but don't interrupt the process