Initial project source

这个提交包含在:
apple
2026-11-20 15:32:57 +08:00
当前提交 fb47c07f7c
共修改 8405 个文件,包含 806907 行新增和 0 行删除
+20
查看文件
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
readonly SOURCE_SQL="/opt/aixun-datagov/source/aixun-cloud.sql"
if [[ ! -r "${SOURCE_SQL}" ]]; then
echo "Reviewed RCP6 system seed is missing." >&2
exit 1
fi
if [[ "${MYSQL_DATABASE:-}" != "aixun_datagov_system" ]]; then
echo "Unexpected schema name; refusing to import." >&2
exit 1
fi
sed 's/aixun_admin/aixun_datagov_system/g' "${SOURCE_SQL}" |
MYSQL_PWD="${MYSQL_ROOT_PASSWORD}" mysql \
--default-character-set=utf8mb4 \
--protocol=socket \
-uroot
@@ -0,0 +1,48 @@
USE `aixun_datagov_system`;
-- M0 only exposes the retained RCP6 common capabilities. Workflow, demo,
-- generator, and object-storage credential administration have no running
-- service in the DataGov baseline and therefore fail closed in dynamic menus.
UPDATE sys_menu AS menu
LEFT JOIN sys_menu AS parent1 ON parent1.menu_id = menu.parent_id
LEFT JOIN sys_menu AS parent2 ON parent2.menu_id = parent1.parent_id
LEFT JOIN sys_menu AS parent3 ON parent3.menu_id = parent2.parent_id
SET menu.status = '1'
WHERE menu.menu_id IN (
1761400000000000003,
1761400000000000005,
1761400000000011616,
1761400000000011618
)
OR parent1.menu_id IN (
1761400000000000003,
1761400000000000005,
1761400000000011616,
1761400000000011618
)
OR parent2.menu_id IN (
1761400000000000003,
1761400000000000005,
1761400000000011616,
1761400000000011618
)
OR parent3.menu_id IN (
1761400000000000003,
1761400000000000005,
1761400000000011616,
1761400000000011618
)
OR menu.component = 'system/oss/config'
OR menu.perms LIKE 'system:ossConfig:%';
-- The M0 file smoke test uses the DataGov-owned filesystem volume. Seeded S3
-- examples are retained for source traceability but cannot become active.
UPDATE sys_oss_config SET status = 'N';
-- A shared plaintext initial password is not a valid DataGov secret backend.
-- Interactive user creation requires an explicit password; new-user imports
-- fail closed while this value is blank.
UPDATE sys_config
SET config_value = '',
remark = 'DataGov禁用默认密码;新建用户必须显式设置'
WHERE config_key = 'sys.user.initPassword';