Skip to content

Commit

Permalink
Switch back to md5 to support older postgres dbs
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Saur <[email protected]>
  • Loading branch information
jsaur committed Sep 3, 2020
1 parent d8c68d7 commit d50120f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const _CREATE_SCHEMA: [&str; 12] = [
ON UPDATE CASCADE
)",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_name ON tags_encrypted(name)",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_value ON tags_encrypted(sha256(value))",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_value ON tags_encrypted(md5(value))",
"CREATE INDEX IF NOT EXISTS ix_tags_encrypted_item_id ON tags_encrypted(item_id)",
"CREATE TABLE IF NOT EXISTS tags_plaintext(
name BYTEA NOT NULL,
Expand Down

0 comments on commit d50120f

Please sign in to comment.