Skip to content

Commit a9de214

Browse files
bobcallawaycpanato
authored andcommitted
s/uuids/uuid
Signed-off-by: Bob Callaway <[email protected]>
1 parent 014cfb1 commit a9de214

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/indexstorage/mysql/mysql.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ import (
3030
const (
3131
ProviderType = "mysql"
3232

33-
lookupStmt = "SELECT EntryUUIDs FROM EntryIndex WHERE EntryKey IN (?)"
34-
writeStmt = "INSERT IGNORE INTO EntryIndex (EntryKey, EntryUUIDs) VALUES (:key, :uuid)"
33+
lookupStmt = "SELECT EntryUUID FROM EntryIndex WHERE EntryKey IN (?)"
34+
writeStmt = "INSERT IGNORE INTO EntryIndex (EntryKey, EntryUUID) VALUES (:key, :uuid)"
3535
createTableStmt = `CREATE TABLE IF NOT EXISTS EntryIndex (
3636
PK BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
3737
EntryKey varchar(512) NOT NULL,
38-
EntryUUIDs char(80) NOT NULL,
38+
EntryUUID char(80) NOT NULL,
3939
PRIMARY KEY(PK),
40-
UNIQUE(EntryKey, EntryUUIDs)
40+
UNIQUE(EntryKey, EntryUUID)
4141
)`
4242
)
4343

0 commit comments

Comments
 (0)