mirror of https://github.com/minio/minio.git
update mysql notification key length, character set and collation (#13414)
fixes #13227
This commit is contained in:
parent
b07e309627
commit
91a0e7bdaa
|
@ -37,8 +37,10 @@ import (
|
||||||
|
|
||||||
const (
|
const (
|
||||||
mysqlTableExists = `SELECT 1 FROM %s;`
|
mysqlTableExists = `SELECT 1 FROM %s;`
|
||||||
mysqlCreateNamespaceTable = `CREATE TABLE %s (key_name VARCHAR(2048), value JSON, PRIMARY KEY (key_name));`
|
mysqlCreateNamespaceTable = `CREATE TABLE %s (key_name VARCHAR(4096), value JSON, PRIMARY KEY (key_name))
|
||||||
mysqlCreateAccessTable = `CREATE TABLE %s (event_time DATETIME NOT NULL, event_data JSON);`
|
CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin ROW_FORMAT = Dynamic;`
|
||||||
|
mysqlCreateAccessTable = `CREATE TABLE %s (event_time DATETIME NOT NULL, event_data JSON)
|
||||||
|
ROW_FORMAT = Dynamic;`
|
||||||
|
|
||||||
mysqlUpdateRow = `INSERT INTO %s (key_name, value) VALUES (?, ?) ON DUPLICATE KEY UPDATE value=VALUES(value);`
|
mysqlUpdateRow = `INSERT INTO %s (key_name, value) VALUES (?, ?) ON DUPLICATE KEY UPDATE value=VALUES(value);`
|
||||||
mysqlDeleteRow = `DELETE FROM %s WHERE key_name = ?;`
|
mysqlDeleteRow = `DELETE FROM %s WHERE key_name = ?;`
|
||||||
|
|
Loading…
Reference in New Issue