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

migration-script-runner / msr-core / a139819f-0c7c-4597-a8f4-7c804fd6173f
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/auto-envparse-2.1.1
DEFAULT BRANCH: master
Ran 18 Dec 2025 03:15PM UTC
Jobs 1
Files 103
Run time 11min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Dec 2025 03:14PM UTC coverage: 100.0%. Remained the same
a139819f-0c7c-4597-a8f4-7c804fd6173f

Pull #132

circleci

vlavrynovych
#139: Fix down migration TypeError by matching DB records with filesystem scripts

Fixed "TypeError: s.init is not a function" error when calling executor.down().

Root Cause:
- migrationScanner.scan() returns scripts.migrated as plain objects from DB
- Plain objects lack filepath property and init() method
- prepareRollbackScripts() tried to call init() on plain objects

Solution:
- Added matchMigratedWithScripts() helper to match DB records with filesystem
- Maps migrated records (plain objects) to MigrationScript instances (with filepath)
- Throws clear error if migration file is missing from filesystem

Changes:
- Added private matchMigratedWithScripts() method in MigrationRollbackManager
- Updated rollbackToVersion() to use matched scripts before calling init()
Pull Request #132: Release v0.8.0

1296 of 1296 branches covered (100.0%)

Branch coverage included in aggregate %.

189 of 189 new or added lines in 12 files covered. (100.0%)

2636 of 2636 relevant lines covered (100.0%)

249.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 a139819f-0c7c-4597-a8f4-7c804fd6173f.1 18 Dec 2025 03:15PM UTC 103
100.0
Source Files on build a139819f-0c7c-4597-a8f4-7c804fd6173f
  • Tree
  • List 103
  • Changed 10
  • Source Changed 10
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • CircleCI Build #A139819F...
  • Pull Request #132
  • PR Base - master (#FAC8222F...)
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

© 2025 Coveralls, Inc