Skip to content

Commit 7fae78f

Browse files
Removed the definition of the duplicate index on the id column and removed the column attributes that do not match what PostgreSQL uses for a primary key
1 parent 324c1d4 commit 7fae78f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain_postgres/vectorstores.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class EmbeddingStore(Base):
198198
__tablename__ = "langchain_pg_embedding"
199199

200200
id = sqlalchemy.Column(
201-
sqlalchemy.String, nullable=True, primary_key=True, index=True, unique=True
201+
sqlalchemy.String, primary_key=True
202202
)
203203

204204
collection_id = sqlalchemy.Column(

0 commit comments

Comments
 (0)