[PR #904] [MERGED] improve migration for PostgresSaver and error handling #1101

Closed
opened 2026-02-15 19:17:12 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/904
Author: @mattia-consiglio
Created: 2/26/2025
Status: Merged
Merged: 5/6/2025
Merged by: @benjamincburns

Base: mainHead: main


📝 Commits (6)

  • 41aa30c refactor(checkpoint-postgres): improve migration and error handling
  • 8b20cb1 feat(checkpoint-postgres): enhance database initialization and testing
  • e5aa0c8 refactor(checkpoint-postgres): update TypeScript configuration and improve error handling
  • 8292392 revert tsconfig change
  • 5be8f30 revert back to delete keyword
  • ef322c9 Update libs/checkpoint-postgres/.gitignore

📊 Changes

4 files changed (+246 additions, -18 deletions)

View changed files

📝 libs/checkpoint-postgres/.gitignore (+2 -0)
📝 libs/checkpoint-postgres/src/index.ts (+16 -13)
📝 libs/checkpoint-postgres/src/sql.ts (+9 -0)
📝 libs/checkpoint-postgres/src/tests/checkpoints.int.test.ts (+219 -5)

📄 Description

Ensure that table checkpoint_migrations is created before the SELECT query.
This will prevent the error of non-existing table

Also fixed some minor code style errors

Fixes #903


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/904 **Author:** [@mattia-consiglio](https://github.com/mattia-consiglio) **Created:** 2/26/2025 **Status:** ✅ Merged **Merged:** 5/6/2025 **Merged by:** [@benjamincburns](https://github.com/benjamincburns) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`41aa30c`](https://github.com/langchain-ai/langgraphjs/commit/41aa30cfaf5cd701a3d0168d2f7d4543869e7383) refactor(checkpoint-postgres): improve migration and error handling - [`8b20cb1`](https://github.com/langchain-ai/langgraphjs/commit/8b20cb11c312b77be731257ba1ccdb327caa0614) feat(checkpoint-postgres): enhance database initialization and testing - [`e5aa0c8`](https://github.com/langchain-ai/langgraphjs/commit/e5aa0c8c272dc1896c9ec271d905fe2a7319457d) refactor(checkpoint-postgres): update TypeScript configuration and improve error handling - [`8292392`](https://github.com/langchain-ai/langgraphjs/commit/8292392b74f2a40d89471bfee261f47ccf70b84f) revert tsconfig change - [`5be8f30`](https://github.com/langchain-ai/langgraphjs/commit/5be8f300c7996545a6a957c7d9f05886afe0f5a3) revert back to `delete` keyword - [`ef322c9`](https://github.com/langchain-ai/langgraphjs/commit/ef322c971c5a523f614dbd85978a334873bd794b) Update libs/checkpoint-postgres/.gitignore ### 📊 Changes **4 files changed** (+246 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint-postgres/.gitignore` (+2 -0) 📝 `libs/checkpoint-postgres/src/index.ts` (+16 -13) 📝 `libs/checkpoint-postgres/src/sql.ts` (+9 -0) 📝 `libs/checkpoint-postgres/src/tests/checkpoints.int.test.ts` (+219 -5) </details> ### 📄 Description Ensure that table `checkpoint_migrations` is created before the `SELECT` query. This will prevent the error of non-existing table Also fixed some minor code style errors Fixes #903 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:17:12 -05:00
yindo closed this issue 2026-02-15 19:17:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1101