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

kobotoolbox / kpi / 17678355591
81%
master: 76%

Build:
Build:
LAST BUILD BRANCH: dev-1272-migrations-discrepancy
DEFAULT BRANCH: master
Ran 12 Sep 2025 03:37PM UTC
Jobs 2
Files 861
Run time 2min
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

12 Sep 2025 03:05PM UTC coverage: 81.131% (-0.006%) from 81.137%
17678355591

push

github

web-flow
fix(migrations): revert _reversion_version change in historical kpi 0015 migration DEV-838 (#6239)

### 👷 Description for instance maintainers

We are phasing out django-reversion, and #6200 removed references to it
in `kpi/migrations/0015_assetversion.py`. However, by changing
`_reversion_version` to an `IntegerField` in that historical migration,
the newer `kpi/migrations/0069_alter_assetversion_reversion_version.py`
no longer generated the correct SQL to properly drop `OneToOneField` key
constraints and avoid renaming the database column. This reverts the
change to `0015` ; the django-reversion dependency will have to stay
until we can squash migrations.

### 👀 Preview steps

1. Have a local development environment with an empty database
1. Check out the `release/2.025.34` (previous release) branch
1. Run `scripts/migrate.sh`
1. Observe success
1. Check out `release/2.025.37` (the base branch for this PR)
1. Run `scripts/migrate.sh` again
1. Observe failure (`django.db.utils.ProgrammingError: column
"_reversion_version" does not exist`)
1. Check out the branch for this PR,
`revert-change-to-historical-assetversion-migration`
1. Run `scripts/migrate.sh` yet again
1. Observe success ✔️

Unit tests in CI handle migrating in one fell swoop from an empty
database to the latest database state (as opposed to pausing at the
previous release in the manual steps above).

6860 of 10838 branches covered (63.3%)

26567 of 32746 relevant lines covered (81.13%)

1.6 hits per line

Jobs
ID Job ID Ran Files Coverage
1 17678355591.1 12 Sep 2025 03:37PM UTC 861
78.81
2 17678355591.2 12 Sep 2025 03:42PM UTC 861
81.11
Source Files on build 17678355591
  • Tree
  • List 861
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 5a4f20cf on github
  • Prev Build on release/2.025.37 (#17672247033)
  • Next Build on release/2.025.37 (#17733630703)
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