fix: ba customized

This commit is contained in:
2023-12-21 21:32:02 +08:00
parent f5c852d801
commit 17983d0b45
2 changed files with 13 additions and 13 deletions

View File

@@ -5,8 +5,8 @@ SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE ALTER TABLE
`omc_db`.`sys_config` MODIFY COLUMN `config_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值' AFTER `config_key`; `omc_db`.`sys_config` MODIFY COLUMN `config_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '参数键值' AFTER `config_key`;
INSERT REPLACE
IGNORE INTO `omc_db`.`sys_config` ( INTO `omc_db`.`sys_config` (
`config_id`, `config_id`,
`config_name`, `config_name`,
`config_key`, `config_key`,
@@ -31,8 +31,8 @@ VALUES (
'config.sys.user.initPasswordRemark' 'config.sys.user.initPasswordRemark'
); );
INSERT REPLACE
IGNORE INTO `omc_db`.`sys_config` ( INTO `omc_db`.`sys_config` (
`config_id`, `config_id`,
`config_name`, `config_name`,
`config_key`, `config_key`,
@@ -57,8 +57,8 @@ VALUES (
'config.sys.account.captchaEnabledRemark' 'config.sys.account.captchaEnabledRemark'
); );
INSERT REPLACE
IGNORE INTO `omc_db`.`sys_config` ( INTO `omc_db`.`sys_config` (
`config_id`, `config_id`,
`config_name`, `config_name`,
`config_key`, `config_key`,
@@ -83,8 +83,8 @@ VALUES (
'config.sys.account.registerUserRemark' 'config.sys.account.registerUserRemark'
); );
INSERT REPLACE
IGNORE INTO `omc_db`.`sys_config` ( INTO `omc_db`.`sys_config` (
`config_id`, `config_id`,
`config_name`, `config_name`,
`config_key`, `config_key`,
@@ -109,8 +109,8 @@ VALUES (
'config.sys.user.maxRetryCountRemark' 'config.sys.user.maxRetryCountRemark'
); );
INSERT REPLACE
IGNORE INTO `omc_db`.`sys_config` ( INTO `omc_db`.`sys_config` (
`config_id`, `config_id`,
`config_name`, `config_name`,
`config_key`, `config_key`,
@@ -135,8 +135,8 @@ VALUES (
'config.sys.user.lockTimeRemark' 'config.sys.user.lockTimeRemark'
); );
INSERT REPLACE
IGNORE INTO `omc_db`.`sys_config` ( INTO `omc_db`.`sys_config` (
`config_id`, `config_id`,
`config_name`, `config_name`,
`config_key`, `config_key`,

View File

@@ -126,6 +126,7 @@ esac
case "$C_ARG" in case "$C_ARG" in
ba) ba)
echo "Processing BA customized OMC ..."
for SQL in ${CustomizedDirBA}/db/*.sql; do for SQL in ${CustomizedDirBA}/db/*.sql; do
echo "Execute SQL script: ${SQL} ..." echo "Execute SQL script: ${SQL} ..."
mysql -u${USER} -p${PASSWORD} -P ${PORT} --protocol tcp -D ${DBNAME} < ${SQL}; mysql -u${USER} -p${PASSWORD} -P ${PORT} --protocol tcp -D ${DBNAME} < ${SQL};
@@ -133,6 +134,5 @@ case "$C_ARG" in
cp -rf ${CustomizedDirBA}/logo/* $StaticLogoDir cp -rf ${CustomizedDirBA}/logo/* $StaticLogoDir
;; ;;
*) *)
echo "C_ARG: $C_ARG"
;; ;;
esac esac