fix(db): renumber duplicate migration 000057_cleanup_universal_plans to 000060 (closes #970)#971
Conversation
…to 000060 (closes #970) Two migrations shared version 000057: drop_user_role_to_groups (applied on live DBs) and cleanup_universal_plans (from #802, not yet applied). golang- migrate requires unique version numbers. Renumber cleanup_universal_plans to 000060 (a free slot between 000059 and 000063), and update the version references in its SQL comments and test file.
|
Warning Review limit reached
More reviews will be available in 7 minutes and 30 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Summary
000057_drop_user_role_to_groups(already applied on live DBs) and000057_cleanup_universal_plans(merged via ops(plans): migration to clean up universal plans (closes #742) #802, not yet applied).golang-migraterequires unique version numbers and will refuse to run with a collision.cleanup_universal_plansfrom 000057 to 000060 (a free slot between 000059 and 000063) viagit mvon all three files (.up.sql, .down.sql, _test.go).000057_drop_user_role_to_groupsis untouched.Test plan
pre-commit run check-migration-conflicts --all-filespasses (no duplicate)gofmt -lclean on renamed test filego vet ./internal/database/... ./internal/config/...no issuesgo build ./...succeedsgo test ./internal/database/... ./internal/config/... -count=1731 tests passCloses #970