Explicitly set length of key hash to 64.

This commit is contained in:
josecoll 2017-10-16 17:35:55 +01:00
parent 0e5346caa1
commit 744f2c658a
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ object NodeInfoSchemaV1 : MappedSchema(
@Table(name = "node_info_party_cert")
data class DBPartyAndCertificate(
@Id
@Column(name = "owning_key_hash")
@Column(name = "owning_key_hash", length = 64)
val owningKeyHash: String,
//@Id // TODO Do we assume that names are unique? Note: We can't have it as Id, because our toString on X500 is inconsistent.

View File

@ -36,7 +36,7 @@ class PersistentKeyManagementService(val identityService: IdentityService,
@javax.persistence.Table(name = "${NODE_DATABASE_PREFIX}our_key_pairs")
class PersistentKey(
@Id
@Column(name = "public_key_hash")
@Column(name = "public_key_hash", length = 64)
var publicKeyHash: String,
@Lob

View File

@ -32,7 +32,7 @@ class PersistentNetworkMapService(network: MessagingService, networkMapCache: Ne
@Table(name = "${NODE_DATABASE_PREFIX}network_map_nodes")
class NetworkNode(
@Id
@Column(name = "node_party_key_hash")
@Column(name = "node_party_key_hash", length = 64)
var publicKeyHash: String,
@Column