fix(migration): use CAST instead of :: for jsonb type cast in seed data

SQLAlchemy's text() interprets ::jsonb as a named parameter binding.
Use CAST(:profile_data AS jsonb) to avoid the collision.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-21 23:27:52 -05:00
parent 53a858cc16
commit 2fff669cc3

View File

@@ -662,7 +662,7 @@ def upgrade() -> None:
category, profile_data, is_system) category, profile_data, is_system)
VALUES VALUES
(NULL, :name, :description, :sys_object_id, :vendor, (NULL, :name, :description, :sys_object_id, :vendor,
:category, :profile_data::jsonb, TRUE) :category, CAST(:profile_data AS jsonb), TRUE)
"""), """),
{ {
"name": profile["name"], "name": profile["name"],