diff options
Diffstat (limited to 'weed/filer2/configuration.go')
| -rw-r--r-- | weed/filer2/configuration.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/weed/filer2/configuration.go b/weed/filer2/configuration.go index ddd06a568..910ddcbbc 100644 --- a/weed/filer2/configuration.go +++ b/weed/filer2/configuration.go @@ -25,12 +25,15 @@ dir = "." # directory to store level db files # # need to choose or create a database. # need to manually create a table "filemeta". +# # CREATE TABLE IF NOT EXISTS filemeta ( -# directory VARCHAR(512) NOT NULL DEFAULT "" COMMENT 'full path to parent directory', -# name VARCHAR(512) NOT NULL DEFAULT "" COMMENT 'directory or file name', +# dirhash BINARY(16) COMMENT 'MD5 hash value of directory field', +# name VARCHAR(1000) NOT NULL DEFAULT "" COMMENT 'directory or file name', +# directory VARCHAR(4096) NOT NULL DEFAULT "" COMMENT 'full path to parent directory', # meta BLOB, -# PRIMARY KEY (directory, name) +# PRIMARY KEY (dirhash, name) # ) DEFAULT CHARSET=utf8; +# enabled = true server = "localhost" port = 3306 |
