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

umbrellio / laravel-pg-extensions
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: sanitize
DEFAULT BRANCH: master
Repo Added 30 May 2019 11:54AM UTC
Files 42
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

LAST BUILD ON BRANCH 2.1.0
branch: 2.1.0
CHANGE BRANCH
x
Reset
  • 2.1.0
  • 2.0.0
  • 2.2.0
  • 2.2.1
  • 2.2.2
  • 2.2.2.1
  • 2.2.2.2
  • 2.2.3
  • 2.2.4
  • 2.2.5
  • 2.2.6
  • 2.3.0
  • 2.4.0
  • 2.5.0
  • 2.5.1
  • 2.6.0
  • 2.6.1
  • 2.7.0
  • 3.0.0
  • 4.0.0
  • 4.1.0
  • 4.1.1
  • 4.1.2
  • 4.2.0
  • 4.3.0
  • 4.4.0
  • 4.4.1
  • 4.5.2
  • add_ATTR_EMULATE_PREPARES_support
  • add_numeric_column_type
  • bug/connection
  • bug/connections
  • bug/extension
  • bug/fix-access
  • bug/postgres-connection
  • bug/tsrange
  • bugs/unique-constraints
  • build/migrate-github-actions
  • build/release
  • build/test-release
  • build/workflow
  • doctrine/refactor
  • extensions/initialize
  • feature/default-expression
  • feature/exclude-constraint
  • feature/exclude-gist
  • feature/extensions-support
  • feature/fix_get_pdo
  • feature/has-index
  • feature/refactor-extensionable
  • feature/triggers
  • feature/tsrange
  • feature/unique-wheres
  • feature/using
  • feature/views
  • fix-traits-namespace
  • fix/composer
  • fix/pdo_field
  • laravel12-pipeline
  • laravel_8_support
  • master
  • minor/badges
  • refactor-blueprint
  • sanitize
  • system/upgrade-dependencies
  • test-travis
  • tests
  • types/tsrange
  • upgrade/php7.4
  • upgrade/php8

pending completion
94

push

travis-ci

lazeevv
Feature/unique wheres (#5)

Extending creating unique indexes with conditions on where, example:

```
Schema::create('cities', static function (Blueprint $table) {
       ... 
       $table->uniquePartial(['name', 'author_id'])
            ->where('editor_id', 1)
            ->whereRaw('field1 = ? and field2 <= ?', ['field1', 'field2'])
            ->whereNotNull('deleted_at')
            ->whereBetween('author_id', [1, 2, 3]);
      ...
```
PS. If you will use $table->uniquePartial() without extend methods after call uniquePartial(), it works as $table->unique().

76 of 76 new or added lines in 5 files covered. (100.0%)

126 of 126 relevant lines covered (100.0%)

7.38 hits per line

Relevant lines Covered
Build:
Build:
126 RELEVANT LINES 126 COVERED LINES
7.38 HITS PER LINE
Source Files on 2.1.0
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
94 2.1.0 Feature/unique wheres (#5) Extending creating unique indexes with conditions on where, example: ``` Schema::create('cities', static function (Blueprint $table) { ... $table->uniquePartial(['name', 'author_id']) -... push 09 Jul 2019 02:09PM UTC lazeevv travis-ci pending completion  
See All Builds (425)
  • Repo 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