From 7ecda42b421cae527f440b8395633b830ea04b55 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Wed, 15 Jan 2025 22:16:28 -0500 Subject: [PATCH] checkpoint-postgres: bring back missing migration (#3058) --- libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py index 89275f111..0d901a78c 100644 --- a/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py +++ b/libs/checkpoint-postgres/langgraph/checkpoint/postgres/base.py @@ -57,6 +57,9 @@ MIGRATIONS = [ PRIMARY KEY (thread_id, checkpoint_ns, checkpoint_id, task_id, idx) );""", "ALTER TABLE checkpoint_blobs ALTER COLUMN blob DROP not null;", + # NOTE: this is a no-op migration to ensure that the versions in the migrations table are correct. + # This is necessary due to an empty migration previously added to the list. + "SELECT 1;", """ CREATE INDEX CONCURRENTLY IF NOT EXISTS checkpoints_thread_id_idx ON checkpoints(thread_id); """,