Skip to content

Commit

Permalink
feat: add drop and recreate index
Browse files Browse the repository at this point in the history
  • Loading branch information
n00m4d committed Dec 12, 2024
1 parent 4d1a0ba commit 8ed50f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions postgre-client/src/load_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ impl PgClient {
"assets_v3_specification_asset_class",
"assets_v3_specification_version",
"assets_v3_supply",
"assets_v3_is_collection_verified",
] {
self.drop_index(transaction, index).await?;
}
Expand Down Expand Up @@ -231,6 +232,7 @@ impl PgClient {
("assets_v3_specification_asset_class", "assets_v3 (ast_specification_asset_class) WHERE ast_specification_asset_class IS NOT NULL AND ast_specification_asset_class <> 'unknown'::specification_asset_class"),
("assets_v3_specification_version", "assets_v3 (ast_specification_version) WHERE ast_specification_version <> 'v1'::specification_versions"),
("assets_v3_supply", "assets_v3(ast_supply) WHERE ast_supply IS NOT NULL"),
("assets_v3_is_collection_verified", "assets_v3(ast_is_collection_verified) WHERE ast_is_collection_verified IS NULL OR ast_is_collection_verified = TRUE"),
]{
self.create_index(transaction, index, on_query_string).await?;
}
Expand Down

0 comments on commit 8ed50f9

Please sign in to comment.