From 0ac080b1ead5216a69a59baec74c7a320f988fa1 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Thu, 12 Oct 2017 15:21:20 -0700 Subject: [PATCH] Add index to Node.SecretID --- nomad/state/schema.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nomad/state/schema.go b/nomad/state/schema.go index 2effff87c..89bc9ed0a 100644 --- a/nomad/state/schema.go +++ b/nomad/state/schema.go @@ -99,6 +99,14 @@ func nodeTableSchema() *memdb.TableSchema { Field: "ID", }, }, + "secret_id": { + Name: "secret_id", + AllowMissing: false, + Unique: true, + Indexer: &memdb.UUIDFieldIndex{ + Field: "SecretID", + }, + }, }, } }