fix: renumber duplicate migration 000444 to 000445#23229
Merged
Conversation
Two migrations were merged with the same number 000444: - 000444_usage_events_ai_seats (merged first, keeps 000444) - 000444_chat_message_runtime_ms (merged second, renumbered to 000445) This fixes the duplicate migration number which causes golang-migrate to fail.
hugodutka
approved these changes
Mar 18, 2026
johnstcn
approved these changes
Mar 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two migrations were merged with the same number 000444:
000444_usage_events_ai_seats(chore: add tallyman events for ai seat tracking #22689, merged first at 09:30) — keeps 000444000444_chat_message_runtime_ms(feat: track step runtime_ms on chat messages #23219, merged second at 10:57) — renumbered to 000445This collision causes
golang-migrateto fail at runtime since it reads both files as the same version.Fix: Rename
000444_chat_message_runtime_ms.{up,down}.sql→000445_chat_message_runtime_ms.{up,down}.sql.Closes coder/internal#1411