• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightninglabs / migrate / 19317390486

13 Nov 2025 01:20AM UTC coverage: 56.603%. First build
19317390486

Pull #3

github

ViktorT-11
migrate: re-run migration tasks callbacks on error

This commit modifies the migration framework to re-attempt migration
tasks if they error during a migration, on the next run. Previously, if
a migration task failed, but their associated SQL migration succeeded,
the database version would be set to a dirty state, and require manual
intervention in order to reset the SQL migration and re-attempt it + the
migration task.

The new re-attempt mechanism is achieved by ensuring that a migration
can only be either an SQL migration or a migration task, but not both.
This way, if a migration task errors, the database version will be
reset to the previous version prior to executing the migration task, and
the migration task will be re-attempted on the next run.
Pull Request #3: migrate: re-run post-step callbacks on error

82 of 110 new or added lines in 2 files covered. (74.55%)

4646 of 8208 relevant lines covered (56.6%)

50.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

69.23
/migration_task.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc