Skip to content

Commit 1f1f03f

Browse files
Removed the definition of the duplicate index on the id column and re… (#167)
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. A primary key always has an index and is always not nullable. Co-authored-by: Eugene Yurtsev <[email protected]>
1 parent b1c9819 commit 1f1f03f

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
@@ -201,7 +201,7 @@ class EmbeddingStore(Base):
201201
__tablename__ = "langchain_pg_embedding"
202202

203203
id = sqlalchemy.Column(
204-
sqlalchemy.String, nullable=True, primary_key=True, index=True, unique=True
204+
sqlalchemy.String, primary_key=True
205205
)
206206

207207
collection_id = sqlalchemy.Column(

0 commit comments

Comments
 (0)