logto-io / logto

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

fix(schemas): fix alter script of init account center #6826

Closed wangsijie closed 1 day ago

wangsijie commented 1 day ago

Summary

Fix alteration script of "init account center". Previously, the tenants selection is ordered by "created_at", but the DB has duplicated rows in the exact same datetime, so the splitting is unstable.

Testing

Local tested with rows more then 1000.

Checklist

github-actions[bot] commented 1 day ago

COMPARE TO master

Total Size Diff :chart_with_downwards_trend: -222 Bytes

Diff by File |Name|Diff| |---|---| |packages/schemas/alterations/next-1731054001-init-account-center.ts|:chart_with_downwards_trend: -222 Bytes|