logto-io / logto

🧑‍🚀 The better identity infrastructure for developers and the open-source alternative to Auth0.
https://logto.io
Mozilla Public License 2.0
7.79k stars 383 forks source link

refactor: update compare DB alteration scripts #6152

Closed darcyYe closed 5 days ago

darcyYe commented 6 days ago

Summary

When we create region role, we also create a corresponding policy (see PR#738). We hence extract nomalizeRoleName() as a reusable method and refactored the DB alteration compare logic.

Testing

Need to test on cloud CI.

Checklist

- [ ] .changeset - [ ] unit tests - [ ] integration tests - [ ] necessary TSDoc comments

github-actions[bot] commented 6 days ago

COMPARE TO master

Total Size Diff :chart_with_upwards_trend: +691 Bytes

Diff by File |Name|Diff| |---|---| |.scripts/compare-database.js|:chart_with_upwards_trend: +691 Bytes|