Skip to content

Commit

Permalink
Update postgres index in multi-wallet to use md5
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Sung <[email protected]>
  • Loading branch information
baegjae committed Mar 22, 2021
1 parent dbd89cf commit aa23d86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const _CREATE_SCHEMA_MULTI: [&str; 14] = [
ON UPDATE CASCADE
)",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_name ON tags_encrypted(wallet_id, name)",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_value ON tags_encrypted(wallet_id, value)",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_value ON tags_encrypted(wallet_id, md5(value))",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_wallet_id_item_id ON tags_encrypted(wallet_id, item_id)",
"CREATE TABLE IF NOT EXISTS tags_plaintext(
wallet_id VARCHAR(64) NOT NULL,
Expand Down

0 comments on commit aa23d86

Please sign in to comment.