Skip to content

Commit d929f0d

Browse files
authored
Fix sql script syntax error in config plugin (#793)
1 parent 6d1b479 commit d929f0d

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
insert into sys_config (id, name, type, key, value, is_frontend, remark, created_time, updated_time)
1+
insert into sys_config (id, name, type, `key`, value, is_frontend, remark, created_time, updated_time)
22
values
3-
(1, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, '2025-08-17 23:08:44', '2025-08-19 10:53:24'),
4-
(2, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, '2025-08-17 23:08:57', '2025-08-19 10:53:24'),
5-
(3, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, '2025-08-17 23:10:53', '2025-08-19 10:53:24'),
6-
(4, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, '2025-08-17 23:11:47', '2025-08-19 10:53:24'),
7-
(5, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, '2025-08-17 23:12:09', '2025-08-19 10:53:24'),
8-
(6, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, '2025-08-17 23:52:46', '2025-08-19 10:53:24');
3+
(1, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, now(), null),
4+
(2, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, now(), null),
5+
(3, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, now(), null),
6+
(4, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, now(), null),
7+
(5, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, now(), null),
8+
(6, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, now(), null),
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
insert into sys_config (id, name, type, key, value, is_frontend, remark, created_time, updated_time)
1+
insert into sys_config (id, name, type, `key`, value, is_frontend, remark, created_time, updated_time)
22
values
3-
(2069061886627938304, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, '2025-08-17 23:08:44', '2025-08-19 10:53:24'),
4-
(2069061886627938305, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, '2025-08-17 23:08:57', '2025-08-19 10:53:24'),
5-
(2069061886627938306, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, '2025-08-17 23:10:53', '2025-08-19 10:53:24'),
6-
(2069061886627938307, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, '2025-08-17 23:11:47', '2025-08-19 10:53:24'),
7-
(2069061886627938308, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, '2025-08-17 23:12:09', '2025-08-19 10:53:24'),
8-
(2069061886627938309, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, '2025-08-17 23:52:46', '2025-08-19 10:53:24');
3+
(2069061886627938304, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, now(), null),
4+
(2069061886627938305, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, now(), null),
5+
(2069061886627938306, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, now(), null),
6+
(2069061886627938307, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, now(), null),
7+
(2069061886627938308, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, now(), null),
8+
(2069061886627938309, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, now(), null),
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
insert into sys_config (id, name, type, key, value, is_frontend, remark, created_time, updated_time)
1+
insert into sys_config (id, name, type, "key", value, is_frontend, remark, created_time, updated_time)
22
values
3-
(1, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, '2025-08-17 23:08:44', '2025-08-19 10:53:24'),
4-
(2, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, '2025-08-17 23:08:57', '2025-08-19 10:53:24'),
5-
(3, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, '2025-08-17 23:10:53', '2025-08-19 10:53:24'),
6-
(4, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, '2025-08-17 23:11:47', '2025-08-19 10:53:24'),
7-
(5, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, '2025-08-17 23:12:09', '2025-08-19 10:53:24'),
8-
(6, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, '2025-08-17 23:52:46', '2025-08-19 10:53:24');
3+
(1, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, now(), null),
4+
(2, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, now(), null),
5+
(3, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, now(), null),
6+
(4, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, now(), null),
7+
(5, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, now(), null),
8+
(6, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, now(), null),
99

1010
-- reset auto-increment values for each table based on max id
1111
select setval(pg_get_serial_sequence('sys_config', 'id'),coalesce(max(id), 0) + 1, true) from sys_config;
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
insert into sys_config (id, name, type, key, value, is_frontend, remark, created_time, updated_time)
1+
insert into sys_config (id, name, type, "key", value, is_frontend, remark, created_time, updated_time)
22
values
3-
(2069061886627938304, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, '2025-08-17 23:08:44', '2025-08-19 10:53:24'),
4-
(2069061886627938305, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, '2025-08-17 23:08:57', '2025-08-19 10:53:24'),
5-
(2069061886627938306, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, '2025-08-17 23:10:53', '2025-08-19 10:53:24'),
6-
(2069061886627938307, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, '2025-08-17 23:11:47', '2025-08-19 10:53:24'),
7-
(2069061886627938308, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, '2025-08-17 23:12:09', '2025-08-19 10:53:24'),
8-
(2069061886627938309, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, '2025-08-17 23:52:46', '2025-08-19 10:53:24');
3+
(2069061886627938304, '状态', 'EMAIL', 'EMAIL_STATUS', '1', 0, null, now(), null),
4+
(2069061886627938305, '服务器地址', 'EMAIL', 'EMAIL_HOST', 'smtp.qq.com', 0, null, now(), null),
5+
(2069061886627938306, '服务器端口', 'EMAIL', 'EMAIL_PORT', '465', 0, null, now(), null),
6+
(2069061886627938307, '邮箱账号', 'EMAIL', 'EMAIL_USERNAME', '[email protected]', 0, null, now(), null),
7+
(2069061886627938308, '邮箱密码', 'EMAIL', 'EMAIL_PASSWORD', '', 0, null, now(), null),
8+
(2069061886627938309, 'SSL 加密', 'EMAIL', 'EMAIL_SSL', '1', 0, null, now(), null),

0 commit comments

Comments
 (0)