mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
feat: 租户访客策略 SQL、访客邀约验证包、component-org 与发布脚本
- docs/sql: organization_* 与 tenant_* 访客楼层策略脚本 - docs/testing: 访客邀约页初始化验证、pack 脚本与 README(忽略 dist/__pycache__) - maven-ninca-common-component-organization: CpImageStoreServiceImpl、starter、run-verify、releases 脚本与 javap 审计 JSON - docs/superpowers: component-org 生产问题修复计划 - scripts/test-env/prepare-db.sh 更新 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -77,15 +77,9 @@ if [[ -f "$DATA_BACKUP/34_2026_04_23_17_28_33.sql.gz" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Apply V2.0.7 DDL (tenant_visitor_floor_policy) — skip if table exists
|
||||
log_info "Checking V2.0.7 DDL (tenant_visitor_floor_policy)..."
|
||||
TABLE_EXISTS=$($MYSQL_CMD -N -e "SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='$DB_ELEVATOR' AND table_name='tenant_visitor_floor_policy'" 2>/dev/null || echo "0")
|
||||
if [[ "$TABLE_EXISTS" -gt 0 ]]; then
|
||||
log_ok " tenant_visitor_floor_policy already exists — DDL skipped"
|
||||
else
|
||||
log_info "Applying V2.0.7 DDL..."
|
||||
$MYSQL_CMD "$DB_ELEVATOR" < "$REPO_ROOT/docs/sql/tenant_visitor_floor_policy.sql"
|
||||
log_ok " V2 DDL applied"
|
||||
fi
|
||||
# 电梯库策略表:DROP + 按最终结构重建(清空历史策略数据;表结构含 org_id / uk_org_building)
|
||||
log_info "Applying elevator tenant_visitor_floor_policy DDL (DROP + CREATE)..."
|
||||
$MYSQL_CMD "$DB_ELEVATOR" < "$REPO_ROOT/docs/sql/tenant_visitor_floor_policy.sql"
|
||||
log_ok " tenant_visitor_floor_policy reset (see docs/sql/tenant_visitor_floor_policy.sql)"
|
||||
|
||||
log_info "Database preparation complete"
|
||||
|
||||
Reference in New Issue
Block a user