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

opentrials / api / 566 / 1
92%
master: 92%

Build:
DEFAULT BRANCH: master
Ran 24 Oct 2016 10:33AM UTC
Files 29
Run time 1s
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

24 Oct 2016 10:31AM UTC coverage: 92.347%. Remained the same
566.1

push

travis-ci

vitorbaptista
Add uniqueness constraints to documents table

There are 3 cases for a document. It can be an FDA document, a document with a
file (with our without URL), and a document with a URL without a file. The
uniqueness constraints for them are:

1. FDA documents - [`fda_approval_id`, `file_id`, `name`]
2. Documents with files - [`type`, `file_id`]
3. Documents with URLs - [`type`, `url`]

In this order. I mean, if a document has an `fda_approval_id`, its the checked
uniqueness constraint must be `1`, and so on.

This is getting overly complicated, and might be a smell that we're trying to
cram different entities in the same table. We might extract them in the future.

362 of 392 relevant lines covered (92.35%)

41.98 hits per line

Source Files on job 566.1
  • Tree
  • List 0
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 566
  • Travis Job 566.1
  • 4300c579 on github
  • Prev Job for on master (#560.1)
  • Next Job for on master (#571.1)
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