cli
cli copied to clipboard
feat: support fetching migration history to local
What kind of change does this PR introduce?
feature
What is the new behavior?
supabase migration fetch to download statements in migration history table as local migration files.
Additional context
Add any other context or screenshots.
Pull Request Test Coverage Report for Build 8876275466
Details
- 7 of 47 (14.89%) changed or added relevant lines in 3 files are covered.
- 5 unchanged lines in 1 file lost coverage.
- Overall coverage decreased (-0.2%) to 57.993%
| Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
|---|---|---|---|
| cmd/migration.go | 7 | 10 | 70.0% |
| internal/migration/history/history.go | 0 | 6 | 0.0% |
| internal/migration/fetch/fetch.go | 0 | 31 | 0.0% |
| <!-- | Total: | 7 | 47 |
| Files with Coverage Reduction | New Missed Lines | % |
|---|---|---|
| internal/gen/keys/keys.go | 5 | 11.76% |
| <!-- | Total: | 5 |
| Totals | |
|---|---|
| Change from base Build 8874184176: | -0.2% |
| Covered Lines: | 6501 |
| Relevant Lines: | 11210 |