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

openwisp / openwisp-controller / 9166943296
99%

Build:
DEFAULT BRANCH: master
Ran 21 May 2024 12:46AM UTC
Jobs 1
Files 102
Run time 1min
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

21 May 2024 12:39AM UTC coverage: 98.75%. Remained the same
9166943296

push

github

nemesifier
[fix] Added data migration to deal with DeviceConnection.unique_together #846

In PR https://github.com/openwisp/openwisp-controller/pull/806,
a unique_together constraint was added to the DeviceConnection model
to ensure that adding more than one row with the same
device_id and credentials_id in the database is not allowed.

However, applying the migration may fail if the database already contains
objects that contradict this unique constraint.

To address this, we have added a data migration step to remove the
conflicting objects from the database before applying the migration.

Unfortunately this change may not be fully backward compatible
for those who are using the development version, if you incur
in any issue while running the migrations, you can fix this with:

./manage.py migrate --fake connection 0009
./manage.py migrate

Fixes #846

Co-authored-by: Federico Capoano <f.capoano@openwisp.io>

6003 of 6079 relevant lines covered (98.75%)

8.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 python- - 9166943296.1 21 May 2024 12:46AM UTC 102
98.75
GitHub Action Run
Source Files on build 9166943296
  • Tree
  • List 102
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9166943296
  • c4a1683d on github
  • Prev Build on master (#9006266246)
  • Next Build on master (#9323102740)
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