aboutsummaryrefslogtreecommitdiff
path: root/weed/command/scaffold.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/scaffold.go')
-rw-r--r--weed/command/scaffold.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/weed/command/scaffold.go b/weed/command/scaffold.go
index 58143a0ad..f838f7791 100644
--- a/weed/command/scaffold.go
+++ b/weed/command/scaffold.go
@@ -124,11 +124,11 @@ interpolateParams = false
[mysql2] # or memsql, tidb
enabled = false
createTable = """
- CREATE TABLE IF NOT EXISTS %s (
- dirhash BIGINT,
- name VARCHAR(1000),
- directory TEXT,
- meta LONGBLOB,
+ CREATE TABLE IF NOT EXISTS ` + "`%s`" + ` (
+ dirhash BIGINT,
+ name VARCHAR(1000),
+ directory TEXT,
+ meta LONGBLOB,
PRIMARY KEY (dirhash, name)
) DEFAULT CHARSET=utf8;
"""
@@ -164,7 +164,7 @@ connection_max_open = 100
[postgres2]
enabled = false
createTable = """
- CREATE TABLE IF NOT EXISTS %s (
+ CREATE TABLE IF NOT EXISTS "%s" (
dirhash BIGINT,
name VARCHAR(65535),
directory VARCHAR(65535),