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

ccnmtl / django-pagetree / 498
88%
master: 88%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/django-3.1.3
DEFAULT BRANCH: master
Ran 20 Jun 2016 02:06PM UTC
Jobs 4
Files 33
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

pending completion
498

push

travis-ci

thraxil
migration to delete TestBlock table if it exists

At one point in the past, the `TestBlock` model was visible to the
migration system and a bunch of our apps have a stray
`pagetree_testblock` table in the database. When `manage.py migrate` is
run against those databases, we get:

```
  Your models have changes that are not yet reflected in a migration, and so won't be applied.
  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.
```

Running `manage.py makemigrations` will create a pagetree migration that
deletes the table.

Unfortunately, if that gets checked in, it breaks the apps that managed
to avoid getting that `pagetree_testblock` table created in the first
place (it tries to delete a table that doesn't exist and that fails).

Even more importantly, it breaks the unit tests since the in-memory
database doesn't have that table.

This commit adds a migration which does the
`migrations.DeleteModel(name="TestBlock")`, but wraps it in a try/catch
so it's harmless if the table doesn't actually exist.

1898 of 2168 relevant lines covered (87.55%)

3.49 hits per line

Jobs
ID Job ID Ran Files Coverage
1 498.1 (DJANGO="Django>=1.8.0,<1.9.0") 20 Jun 2016 02:06PM UTC 0
86.99
Travis Job 498.1
2 498.2 (DJANGO="Django>=1.9.0,<1.10.0") 20 Jun 2016 02:06PM UTC 0
87.55
Travis Job 498.2
3 498.3 (DJANGO="Django>=1.8.0,<1.9.0") 20 Jun 2016 02:06PM UTC 0
86.99
Travis Job 498.3
4 498.4 (DJANGO="Django>=1.9.0,<1.10.0") 20 Jun 2016 02:07PM UTC 0
87.55
Travis Job 498.4
Source Files on build 498
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #498
  • 5e72efc9 on github
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