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

umbrellio / laravel-pg-extensions / 305
100%

Build:
DEFAULT BRANCH: master
Ran 06 Aug 2019 07:58PM UTC
Jobs 7
Files 25
Run time 4min
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
305

push

travis-ci

lazeevv
Added support deleting UNIQUE partial indexes (#22)

Added support for deleting unique indexes with WHERE conditions.

By default, if the created unique index contains no conditions, PostgresSQL automatically creates a Constraint for it, for example:

CREATE UNIQUE INDEX CONCURRENTLY examples_new_col_idx ON examples (new_col);
ALTER TABLE examples
    ADD CONSTRAINT examples_unique_constraint USING INDEX examples_new_col_idx;
If the unique index contains WHERE conditions, then such a Constraint will not be created, because PostgreSQL doesn't
define a partial (ie conditional) UNIQUE constraint.

When trying to delete such a partial unique index, we get the error "Unique Constraint not found", so the standard command to remove $table->dropUnique() does not fit, the command $table->dropIndex() is suitable, but if pass the array there, then the index name will be generated as for a regular index with the suffix _index, instead of _unique, which we need.

And manually generating the index name is wrong.

This Merge Request solves these problems.

1 of 1 new or added line in 1 file covered. (100.0%)

253 of 253 relevant lines covered (100.0%)

70.53 hits per line

Jobs
ID Job ID Ran Files Coverage
2 305.2 (DB=pgsql POSTGRESQL_VERSION=9.2 COVERAGE=yes) 06 Aug 2019 07:59PM UTC 0
100.0
Travis Job 305.2
3 305.3 (DB=pgsql POSTGRESQL_VERSION=9.3 COVERAGE=yes) 06 Aug 2019 07:58PM UTC 0
100.0
Travis Job 305.3
4 305.4 (DB=pgsql POSTGRESQL_VERSION=9.4 COVERAGE=yes) 06 Aug 2019 07:59PM UTC 0
100.0
Travis Job 305.4
5 305.5 (DB=pgsql POSTGRESQL_VERSION=9.5 COVERAGE=yes) 06 Aug 2019 07:58PM UTC 0
100.0
Travis Job 305.5
6 305.6 (DB=pgsql POSTGRESQL_VERSION=9.6 COVERAGE=yes) 06 Aug 2019 08:02PM UTC 0
100.0
Travis Job 305.6
7 305.7 (DB=pgsql POSTGRESQL_VERSION=10.0 COVERAGE=yes) 06 Aug 2019 08:02PM UTC 0
100.0
Travis Job 305.7
8 305.8 (DB=pgsql DOCKER_POSTGRES=yes POSTGRESQL_VERSION=11.0 COVERAGE=yes) 06 Aug 2019 08:02PM UTC 0
100.0
Travis Job 305.8
Source Files on build 305
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #305
  • 7e5312ad on github
  • Prev Build on master (#290)
  • Next Build on master (#311)
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