From a9de214fc6a0d9c016f30b2992ef7ac2c6f4da2c Mon Sep 17 00:00:00 2001 From: Bob Callaway Date: Sun, 26 Nov 2023 13:30:27 -0500 Subject: [PATCH] s/uuids/uuid Signed-off-by: Bob Callaway --- pkg/indexstorage/mysql/mysql.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/indexstorage/mysql/mysql.go b/pkg/indexstorage/mysql/mysql.go index ca173251c..05b0d27f5 100644 --- a/pkg/indexstorage/mysql/mysql.go +++ b/pkg/indexstorage/mysql/mysql.go @@ -30,14 +30,14 @@ import ( const ( ProviderType = "mysql" - lookupStmt = "SELECT EntryUUIDs FROM EntryIndex WHERE EntryKey IN (?)" - writeStmt = "INSERT IGNORE INTO EntryIndex (EntryKey, EntryUUIDs) VALUES (:key, :uuid)" + lookupStmt = "SELECT EntryUUID FROM EntryIndex WHERE EntryKey IN (?)" + writeStmt = "INSERT IGNORE INTO EntryIndex (EntryKey, EntryUUID) VALUES (:key, :uuid)" createTableStmt = `CREATE TABLE IF NOT EXISTS EntryIndex ( PK BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, EntryKey varchar(512) NOT NULL, - EntryUUIDs char(80) NOT NULL, + EntryUUID char(80) NOT NULL, PRIMARY KEY(PK), - UNIQUE(EntryKey, EntryUUIDs) + UNIQUE(EntryKey, EntryUUID) )` )