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

opentrials / api / 566
92%

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

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

Jobs
ID Job ID Ran Files Coverage
1 566.1 24 Oct 2016 10:33AM UTC 0
92.35
Travis Job 566.1
Source Files on build 566
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #566
  • 4300c579 on github
  • Prev Build on master (#560)
  • Next Build on master (#571)
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