Skip to content

fix(cli): pair mixed width migration versions (CLI-3205) - #7781

Merged
7ttp merged 3 commits into
developfrom
7ttp/cli-3205-db-pull-suggests-contradictory-repairs-for
Nov 24, 2026
Merged

7ttp merged 3 commits into
developfrom
7ttp/cli-3205-db-pull-suggests-contradictory-repairs-for

Conversation

@7ttp

@7ttp 7ttp commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

TL;DR

fixes db pull and migration list mixing up 8 and 14 digit migration versions when a local only migration sorts before them

whats missing?

both read the local and remote lists in text order but stepped through them by number, so db pull asked to revert and apply the same version and migration list showed it twice

now improved by:

both now sort the remote list the same way as the local one and step through them in that text order, like db push, so the database's own sort order no longer matters and versions that differ only in leading zeros no longer pair either

ref:

@7ttp 7ttp self-assigned this Nov 24, 2026
@7ttp
7ttp requested a review from a team as a code owner November 24, 2026 12:54
@7ttp
7ttp requested a review from Prashansa-K November 24, 2026 12:54
@github-actions

Copy link
Copy Markdown
Contributor

CLI benchmark (Lightweight Commands): no changes found

Commit 72fb7d8 against develop at 931e346 · 10 runs each · report only, never blocks merging

Command Workload Before After Change
supabase --version version 255 ms 254 ms no real change
supabase --help help 253 ms 246 ms no real change
supabase init init 268 ms 245 ms no real change (-8%, within normal variation)
supabase migration new bench migration-new 253 ms 252 ms no real change
supabase config convert config-convert 210 ms 221 ms no real change (+5%, within normal variation)
supabase config validate config-validate 197 ms 195 ms no real change
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 222 ms 215 ms no real change
supabase projects list projects-list 208 ms 217 ms no real change
supabase functions list --project-ref replayfixtureprojref functions-list 230 ms 239 ms no real change

API calls: unchanged for all 9 commands.

Binary size: 135.6 MB, unchanged.

Details: timing ranges, API calls per command, slowest phases

Timing ranges

Command Workload Before range After range Change Verdict
supabase --version version 211-286 ms 235-314 ms 0 ms (0%) within noise
supabase --help help 227-300 ms 219-305 ms -7 ms (-3%) within noise
supabase init init 218-315 ms 230-336 ms -23 ms (-8%) within noise
supabase migration new bench migration-new 232-269 ms 225-272 ms -1 ms (0%) within noise
supabase config convert config-convert 179-233 ms 179-242 ms +11 ms (+5%) within noise
supabase config validate config-validate 188-218 ms 187-204 ms -3 ms (-1%) within noise
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 204-236 ms 206-299 ms -7 ms (-3%) within noise
supabase projects list projects-list 185-235 ms 187-315 ms +9 ms (+5%) within noise
supabase functions list --project-ref replayfixtureprojref functions-list 200-363 ms 203-264 ms +9 ms (+4%) within noise

API calls per command

Command Workload Before After Endpoint changes
supabase --version version 0 0
supabase --help help 0 0
supabase init init 0 0
supabase migration new bench migration-new 0 0
supabase config convert config-convert 0 0
supabase config validate config-validate 0 0
supabase gen types --lang typescript --project-id replayfixtureprojref gen-types 2 2
supabase projects list projects-list 1 1
supabase functions list --project-ref replayfixtureprojref functions-list 2 2

Slowest phases

No command moved beyond noise, so there are no phase deltas.

Workflow run

Comment /bench to run the lightweight benchmark (this comment) again on the latest commit, or /bench full to also run the integration-heavy benchmark, which posts in its own comment.

github-actions[bot]

This comment was marked as resolved.

@7ttp
7ttp added this pull request to the merge queue Nov 24, 2026
Merged via the queue into develop with commit 01ed453 Nov 24, 2026
50 checks passed
@7ttp
7ttp deleted the 7ttp/cli-3205-db-pull-suggests-contradictory-repairs-for branch November 24, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

db pull suggests contradictory repairs for mixed-width migration versions

2 participants