[PR #1027] [MERGED] Support for Partial Indexes for PostgreSql and Sqlite #9049

Open
opened 2026-01-22 16:02:59 +01:00 by admin · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/doctrine/orm/pull/1027
Author: @PowerKiKi
Created: 5/7/2014
Status: Merged
Merged: 11/5/2014
Merged by: @Ocramius

Base: masterHead: feature-partial-indexes


📝 Commits (4)

  • eeb7ff4 Support for Partial Indexes for PostgreSql and Sqlite
  • 27adf8d Refactor partial into options array
  • bb5345b Adapt formatting to pre-existing content
  • 1003466 Surround ! with spaces according to code style

📊 Changes

15 files changed (+140 additions, -83 deletions)

View changed files

📝 docs/en/reference/annotations-reference.rst (+14 -0)
📝 doctrine-mapping.xsd (+47 -45)
📝 lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php (+9 -1)
📝 lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php (+16 -11)
📝 lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php (+15 -10)
📝 lib/Doctrine/ORM/Mapping/Index.php (+5 -0)
📝 lib/Doctrine/ORM/Mapping/UniqueConstraint.php (+5 -0)
📝 lib/Doctrine/ORM/Tools/SchemaTool.php (+3 -3)
📝 tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php (+8 -7)
📝 tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.Comment.php (+1 -1)
📝 tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.User.php (+2 -2)
📝 tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.Comment.dcm.xml (+5 -1)
📝 tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml (+5 -1)
📝 tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.Comment.dcm.yml (+2 -0)
📝 tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.User.dcm.yml (+3 -1)

📄 Description

Support for Partial Indexes was available in Doctrine 1 following
http://www.doctrine-project.org/jira/browse/DC-82. This commit
reintroduce support for Doctrine 2. We use the same syntax with an
optionnal "where" attribute for Index and UniqueConstraint.

It is unit-tests covered and documented in manual. This Pull Request depends on https://github.com/doctrine/dbal/pull/600. So they should both be merged or rejected together.

Thanks for your time !


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/doctrine/orm/pull/1027 **Author:** [@PowerKiKi](https://github.com/PowerKiKi) **Created:** 5/7/2014 **Status:** ✅ Merged **Merged:** 11/5/2014 **Merged by:** [@Ocramius](https://github.com/Ocramius) **Base:** `master` ← **Head:** `feature-partial-indexes` --- ### 📝 Commits (4) - [`eeb7ff4`](https://github.com/doctrine/orm/commit/eeb7ff4a6d1e038a577739d91dcdeffdb21c4a11) Support for Partial Indexes for PostgreSql and Sqlite - [`27adf8d`](https://github.com/doctrine/orm/commit/27adf8d6e9723c86e3725de18b5e1a955996cc11) Refactor partial into options array - [`bb5345b`](https://github.com/doctrine/orm/commit/bb5345b33036cd9f9d4705657f28bb80dc4a474b) Adapt formatting to pre-existing content - [`1003466`](https://github.com/doctrine/orm/commit/1003466a5f801759603a793b82aa79f2f352bd31) Surround ! with spaces according to code style ### 📊 Changes **15 files changed** (+140 additions, -83 deletions) <details> <summary>View changed files</summary> 📝 `docs/en/reference/annotations-reference.rst` (+14 -0) 📝 `doctrine-mapping.xsd` (+47 -45) 📝 `lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php` (+9 -1) 📝 `lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php` (+16 -11) 📝 `lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php` (+15 -10) 📝 `lib/Doctrine/ORM/Mapping/Index.php` (+5 -0) 📝 `lib/Doctrine/ORM/Mapping/UniqueConstraint.php` (+5 -0) 📝 `lib/Doctrine/ORM/Tools/SchemaTool.php` (+3 -3) 📝 `tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php` (+8 -7) 📝 `tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.Comment.php` (+1 -1) 📝 `tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.User.php` (+2 -2) 📝 `tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.Comment.dcm.xml` (+5 -1) 📝 `tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.ORM.Mapping.User.dcm.xml` (+5 -1) 📝 `tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.Comment.dcm.yml` (+2 -0) 📝 `tests/Doctrine/Tests/ORM/Mapping/yaml/Doctrine.Tests.ORM.Mapping.User.dcm.yml` (+3 -1) </details> ### 📄 Description Support for Partial Indexes was available in Doctrine 1 following http://www.doctrine-project.org/jira/browse/DC-82. This commit reintroduce support for Doctrine 2. We use the same syntax with an optionnal "where" attribute for Index and UniqueConstraint. It is unit-tests covered and documented in manual. This Pull Request depends on https://github.com/doctrine/dbal/pull/600. So they should both be merged or rejected together. Thanks for your time ! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
admin added the pull-request label 2026-01-22 16:02:59 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#9049