Add index to Node.SecretID

This commit is contained in:
Michael Schurter
2017-10-12 15:21:20 -07:00
parent fae8e7f699
commit 0ac080b1ea

View File

@@ -99,6 +99,14 @@ func nodeTableSchema() *memdb.TableSchema {
Field: "ID",
},
},
"secret_id": {
Name: "secret_id",
AllowMissing: false,
Unique: true,
Indexer: &memdb.UUIDFieldIndex{
Field: "SecretID",
},
},
},
}
}