Skip to content
This repository was archived by the owner on May 27, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"projects/pgai": "0.11.2"
"projects/pgai": "0.11.3"
}
17 changes: 17 additions & 0 deletions projects/pgai/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## [0.11.3](https://github.com/timescale/pgai/compare/pgai-v0.11.2...pgai-v0.11.3) (2025-06-30)


### Bug Fixes

* pass voyage api key to client ([8eab632](https://github.com/timescale/pgai/commit/8eab632ca32c795451935cad6912b30395898a64))
* store ModelRequest in generate_sql messages list ([#834](https://github.com/timescale/pgai/issues/834)) ([0dd09c0](https://github.com/timescale/pgai/commit/0dd09c0294225373653d36001dcafe28801de336))
* vectorizer_relationship with tuple table args ([#805](https://github.com/timescale/pgai/issues/805)) ([ae49c48](https://github.com/timescale/pgai/commit/ae49c483e3be91af9842d351ff0328cda4ae1065))


### Miscellaneous

* ignore line-too-long (E501) lint ([#821](https://github.com/timescale/pgai/issues/821)) ([f3989d7](https://github.com/timescale/pgai/commit/f3989d7306552f5d2604aa25a266ec20f9f69c74))
* remove git lfs ([2af8fbc](https://github.com/timescale/pgai/commit/2af8fbcb712a92bfa9c13da256c5ef5075949da7))
* split deps into separate extras ([#800](https://github.com/timescale/pgai/issues/800)) ([3a11921](https://github.com/timescale/pgai/commit/3a1192125fc934d36e063b866cf73f49e306b62a))
* store golden query results in files ([#819](https://github.com/timescale/pgai/issues/819)) ([fc9e23f](https://github.com/timescale/pgai/commit/fc9e23fc8580665e444cd51647304dd1d081f36e))

## [0.11.2](https://github.com/timescale/pgai/compare/pgai-v0.11.1...pgai-v0.11.2) (2025-06-12)


Expand Down
8 changes: 4 additions & 4 deletions projects/pgai/db/tests/upgrade/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def upgrade_and_compare(from_version, to_version, exclude_incrementals, fixups):
# STEP 1: Create the "expected" database state by installing the current dev version fresh
# This represents what the database should look like after a successful upgrade
create_database(target_database_name)
install_pgai_db(target_database_name, "") # Empty string = use local dev version
install_pgai_db(target_database_name, to_version)
assert check_version(target_database_name) == to_version
init_db_script(target_database_name, "init.sql") # Create test data and vectorizer

Expand Down Expand Up @@ -337,7 +337,7 @@ def snapshot(
f'-v source_version="{source_version}"',
f'-v target_version="{current_dev_version}"',
# HACK: Inject the exclude list to filter out problematic migrations
f"-v exclude_list=\"{exclude_sql or 'NULL'}\"",
f'-v exclude_list="{exclude_sql or "NULL"}"',
f"-f {docker_dir()}/snapshot.sql", # SQL script that generates the snapshot
f"-o {docker_dir()}/{filename}", # Output file
]
Expand All @@ -356,7 +356,7 @@ def is_version_earlier_or_equal_than(v1, v2):
return v1_parts <= v2_parts


def install_pgai_db(dbname: str, version: str = "") -> None:
def install_pgai_db(dbname: str, version: str) -> None:
"""Install or upgrade pgai in the database.

This function handles both fresh installations and upgrades by calling the
Expand All @@ -370,7 +370,7 @@ def install_pgai_db(dbname: str, version: str = "") -> None:
"""

db = db_url(user=USER, dbname=dbname)
if version == "":
if version == current_dev_version:
# Use local development version (from source code)
source_root = (
Path(__file__).parents[4].absolute()
Expand Down
2 changes: 1 addition & 1 deletion projects/pgai/pgai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.11.2"
__version__ = "0.11.3"

from pgai._install.install import ainstall, install

Expand Down
2 changes: 1 addition & 1 deletion projects/pgai/pgai/data/ai.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--------------------------------------------------------------------------------
-- ai 0.11.2 (x-release-please-version)
-- ai 0.11.3 (x-release-please-version)


set local search_path = pg_catalog, pg_temp;
Expand Down