mirror of
https://github.com/openharmony/security_access_token.git
synced 2026-08-24 06:33:12 -04:00
97c19f17ac
UpdatePermissionRecordTablePrimaryKey was changed by the enhancedIdentity work to build a 10-column new table including ENHANCED_IDENTITY, but the old table on the 3->4 path only has 9 columns. Since 'insert ... select *' matches by position, this reports a column count mismatch. Add a withEnhancedIdentity parameter: pass false for 3->4 to build a 9-column table, pass true for 6->7 to keep the original behavior. Signed-off-by: bigtea <tianqushen@h-partners.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: opencode (glm-5.2) <ai@local>