mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-28 13:31:27 +08:00
mysql: ensure name column is case sensitive
fix https://github.com/chrislusf/seaweedfs/issues/1931
This commit is contained in:
parent
5f0e68c21e
commit
85cff10787
@ -103,9 +103,9 @@ dir = "./filerrdb" # directory to store rocksdb files
|
|||||||
|
|
||||||
[mysql] # or memsql, tidb
|
[mysql] # or memsql, tidb
|
||||||
# CREATE TABLE IF NOT EXISTS filemeta (
|
# CREATE TABLE IF NOT EXISTS filemeta (
|
||||||
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
|
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
|
||||||
# name VARCHAR(1000) COMMENT 'directory or file name',
|
# name VARCHAR(1000) BINARY COMMENT 'directory or file name',
|
||||||
# directory TEXT COMMENT 'full path to parent directory',
|
# directory TEXT COMMENT 'full path to parent directory',
|
||||||
# meta LONGBLOB,
|
# meta LONGBLOB,
|
||||||
# PRIMARY KEY (dirhash, name)
|
# PRIMARY KEY (dirhash, name)
|
||||||
# ) DEFAULT CHARSET=utf8;
|
# ) DEFAULT CHARSET=utf8;
|
||||||
@ -126,7 +126,7 @@ enabled = false
|
|||||||
createTable = """
|
createTable = """
|
||||||
CREATE TABLE IF NOT EXISTS ` + "`%s`" + ` (
|
CREATE TABLE IF NOT EXISTS ` + "`%s`" + ` (
|
||||||
dirhash BIGINT,
|
dirhash BIGINT,
|
||||||
name VARCHAR(1000),
|
name VARCHAR(1000) BINARY,
|
||||||
directory TEXT,
|
directory TEXT,
|
||||||
meta LONGBLOB,
|
meta LONGBLOB,
|
||||||
PRIMARY KEY (dirhash, name)
|
PRIMARY KEY (dirhash, name)
|
||||||
|
Loading…
Reference in New Issue
Block a user