docs: record work assistant production release
This commit is contained in:
@@ -156,6 +156,8 @@ FROM (
|
||||
UNION ALL SELECT 'aihr_qualification_gate'
|
||||
UNION ALL SELECT 'aihr_memory_candidate'
|
||||
UNION ALL SELECT 'aihr_assistant_capture'
|
||||
UNION ALL SELECT 'aihr_assistant_capture_status_log'
|
||||
UNION ALL SELECT 'aihr_daily_work_result'
|
||||
UNION ALL SELECT 'aihr_service_memory'
|
||||
UNION ALL SELECT 'aihr_service_memory_version'
|
||||
UNION ALL SELECT 'aihr_work_report'
|
||||
@@ -211,8 +213,36 @@ REMOTE
|
||||
|
||||
[[ "$work_report_unique_index" = "0|tenant_id,submitter_user_id,request_key|0" ]] \
|
||||
|| fail "remote work-report unique index invalid: expected unique full columns tenant_id,submitter_user_id,request_key; got ${work_report_unique_index:-missing}"
|
||||
echo "remote_schema=41/41 $remote_ssh:$remote_db"
|
||||
local missing_work_assistant_columns
|
||||
missing_work_assistant_columns="$(ssh -o BatchMode=yes -o ConnectTimeout=10 "$remote_ssh" bash -s -- "$remote_db" <<'REMOTE'
|
||||
set -euo pipefail
|
||||
db="$1"
|
||||
mysql --batch --skip-column-names --connect-timeout=5 "$db" <<'SQL'
|
||||
SELECT CONCAT(required.table_name, '.', required.column_name)
|
||||
FROM (
|
||||
SELECT 'aihr_memory_candidate' AS table_name, 'work_date' AS column_name
|
||||
UNION ALL SELECT 'aihr_memory_candidate', 'source_snapshot_json'
|
||||
UNION ALL SELECT 'aihr_assistant_capture', 'work_date'
|
||||
UNION ALL SELECT 'aihr_assistant_capture', 'source_snapshot_json'
|
||||
UNION ALL SELECT 'aihr_assistant_capture', 'business_status'
|
||||
UNION ALL SELECT 'aihr_knowledge_conversation', 'project_code'
|
||||
UNION ALL SELECT 'aihr_daily_work_result', 'content_hash'
|
||||
) required
|
||||
LEFT JOIN information_schema.columns actual
|
||||
ON actual.table_schema = DATABASE()
|
||||
AND actual.table_name = required.table_name
|
||||
AND actual.column_name = required.column_name
|
||||
WHERE actual.column_name IS NULL
|
||||
ORDER BY required.table_name, required.column_name;
|
||||
SQL
|
||||
REMOTE
|
||||
)" || fail "remote work-assistant schema check failed: $remote_ssh:$remote_db"
|
||||
|
||||
[[ -z "$missing_work_assistant_columns" ]] \
|
||||
|| fail "remote work-assistant schema missing required columns: $(printf '%s' "$missing_work_assistant_columns" | tr '\n' ', ' | sed 's/, $//')"
|
||||
echo "remote_schema=43/43 $remote_ssh:$remote_db"
|
||||
echo "remote_work_report_idempotency=3/3 $remote_ssh:$remote_db"
|
||||
echo "remote_work_assistant_columns=7/7 $remote_ssh:$remote_db"
|
||||
}
|
||||
|
||||
changed_files="$(git status --porcelain)"
|
||||
|
||||
Reference in New Issue
Block a user