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

hypothesis / h / 8755 / 1
69%
master: 97%

Build:
Build:
LAST BUILD BRANCH: realtime-update-v1-h-only-1
DEFAULT BRANCH: master
Ran 22 Oct 2015 04:29PM UTC
Files 87
Run time 8s
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

22 Oct 2015 04:15PM UTC coverage: 68.735%. First build
8755.1

push

travis-ci

nickstenning
Set up a constraint naming convention for sqlalchemy

In order to be able to add and remove constraints using alembic, they
must be named. Luckily for us PostgreSQL does actually have a reasonably
sensible constraint naming convention, but enforcing this in sqlalchemy
allows us to know what constraints are called without referring to the
database in question.

In addition, the default PostgreSQL naming convention suffers from
clashes: an FK constraint on the column "id" on a join table called
"foo_bar" will be named "foo_bar_id_fkey", which is the same name as
would be given to an FK constraint on the "bar_id" column on table
"foo". The naming convention chosen here doesn't suffer from the same
problem (presuming that you never use "__" in column names).

This commit includes a migration to update existing constraints to the
new naming convention.

2515 of 3659 relevant lines covered (68.73%)

0.69 hits per line

Source Files on job 8755.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8755
  • Travis Job 8755.1
  • 20ee0e9a 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