File tree 1 file changed +3
-12
lines changed 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -222,25 +222,16 @@ class EmbeddingStore(Base):
222
222
document = sqlalchemy .Column (sqlalchemy .String , nullable = True )
223
223
cmetadata = sqlalchemy .Column (JSONB , nullable = True )
224
224
225
- if extend_existing :
226
- __table_args__ = (
227
- sqlalchemy .Index (
228
- "ix_cmetadata_gin" ,
229
- "cmetadata" ,
230
- postgresql_using = "gin" ,
231
- postgresql_ops = {"cmetadata" : "jsonb_path_ops" },
232
- ),
233
- {'extend_existing' : True }
234
- )
235
- else :
236
- __table_args__ = (
225
+ __table_args__ = (
237
226
sqlalchemy .Index (
238
227
"ix_cmetadata_gin" ,
239
228
"cmetadata" ,
240
229
postgresql_using = "gin" ,
241
230
postgresql_ops = {"cmetadata" : "jsonb_path_ops" },
242
231
),
243
232
)
233
+ if extend_existing :
234
+ __table_args__ = __table_args__ + ({'extend_existing' : True }, )
244
235
245
236
_classes = (EmbeddingStore , CollectionStore )
246
237
You can’t perform that action at this time.
0 commit comments