Skip to content

Commit

Permalink
Refine hook to connect to related table.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielballan committed Apr 19, 2024
1 parent 86d1286 commit 158a0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiled/catalog/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def unique_parameter_num_null_check(target, connection, **kw):
)


@event.listens_for(DataSourceAssetAssociation.__table__, "after_create")
@event.listens_for(Node.__table__, "after_create")
def create_index_metadata_tsvector_search(target, connection, **kw):
# This creates a ts_vector based metadata search index for fulltext.
# Postgres only feature
Expand All @@ -271,7 +271,7 @@ def create_index_metadata_tsvector_search(target, connection, **kw):
)


@event.listens_for(DataSourceAssetAssociation.__table__, "after_create")
@event.listens_for(Node.__table__, "after_create")
def create_virtual_table_fits5(target, connection, **kw):
if connection.engine.dialect.name == "sqlite":
statements = [
Expand Down

0 comments on commit 158a0cc

Please sign in to comment.