Skip to content

Commit

Permalink
s/uuids/uuid
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <[email protected]>
  • Loading branch information
bobcallaway authored and cpanato committed Nov 27, 2023
1 parent 014cfb1 commit a9de214
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/indexstorage/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)`
)

Expand Down

0 comments on commit a9de214

Please sign in to comment.