Data type for notes.discussion_id should be bytea but is string
We should store any SHA values as binary (see https://docs.gitlab.com/ee/development/sha1_as_binary.html). For notes.discussion_id
we currently use a varchar
but should be using bytea
instead.