... nt ¶ class UniqueConstraint ( * expressions , fields = () , name , condition = None , deferrable = None , include = None , opclasses = () , nulls_distinct = None , violation_error_code = None , violation_error_message = None ) [ソース] ¶ Creates a uniquen ... true database constraint ( ADD CONSTRAINT ... UNIQUE ). Specifying any of UniqueConstraint.expressions , UniqueConstraint.opclasses , UniqueConstraint.condition , or UniqueConstraint.include creates a unique index ( CREATE UNIQUE INDEX ) instead. In this ... 行されません。即時 (IMMEDIATE) 制約は、すべてのコマンドの直後に実行されます。 Unique constraints with condition , include , opclasses , or expressions may be implemented as unique indexes rather than unique constraints. In that case, deferrable cannot be s ... ... るのが標準的な慣習です。 Index オプション ¶ class Index ( * expressions , fields = () , name = None , db_tablespace = None , opclasses = () , condition = None , include = None ) [ソース] ¶ データベース内にインデックス (B-Tree) を作成します。 expressions ¶ I ... 内に作成されます。 参考 PostgreSQL 特有のインデックスの一覧については、 django.contrib.postgres.indexes を参照してください。 opclasses ¶ Index. opclasses ¶ このインデックスで使用する PostgreSQL の演算子クラス の名前。カスタム演算子クラスが必要な場合、インデ ... ックス内の各フィールドごとに1つ指定する必要があります。 たとえば、 GinIndex(name='json_index', fields=['jsonfield'], opclasses=['jsonb_path_ops']) は、 jsonb_path_ops を使用して jsonfield に gin インデックスを作成します。 opclasses はPostgreSQL以外の ... ... るのが標準的な慣習です。 Index オプション ¶ class Index ( * expressions , fields = () , name = None , db_tablespace = None , opclasses = () , condition = None , include = None ) [ソース] ¶ データベース内にインデックス (B-Tree) を作成します。 expressions ¶ I ... 内に作成されます。 参考 PostgreSQL 特有のインデックスの一覧については、 django.contrib.postgres.indexes を参照してください。 opclasses ¶ Index. opclasses ¶ このインデックスで使用する PostgreSQL の演算子クラス の名前。カスタム演算子クラスが必要な場合、インデ ... ックス内の各フィールドごとに1つ指定する必要があります。 たとえば、 GinIndex(name='json_index', fields=['jsonfield'], opclasses=['jsonb_path_ops']) は、 jsonb_path_ops を使用して jsonfield に gin インデックスを作成します。 opclasses はPostgreSQL以外の ... ... nt ¶ class UniqueConstraint ( * expressions , fields = () , name , condition = None , deferrable = None , include = None , opclasses = () , nulls_distinct = None , violation_error_code = None , violation_error_message = None ) [ソース] ¶ Creates a uniquen ... true database constraint ( ADD CONSTRAINT ... UNIQUE ). Specifying any of UniqueConstraint.expressions , UniqueConstraint.opclasses , UniqueConstraint.condition , or UniqueConstraint.include creates a unique index ( CREATE UNIQUE INDEX ) instead. In this ... 行されません。即時 (IMMEDIATE) 制約は、すべてのコマンドの直後に実行されます。 Unique constraints with condition , include , opclasses , or expressions may be implemented as unique indexes rather than unique constraints. In that case, deferrable cannot be s ... ... ng a forward migration plan ( #30870 ). Fixed migrations crash on PostgreSQL when adding an Index with fields ordering and opclasses ( #30903 ). Restored the ability to override get_FOO_display() ( #30931 ). 目次 Django 2.2.7 リリースノート バグ修正 前のト ... ... ng a forward migration plan ( #30870 ). Fixed migrations crash on PostgreSQL when adding an Index with fields ordering and opclasses ( #30903 ). Restored the ability to override get_FOO_display() ( #30931 ). 目次 Django 2.2.7 リリースノート バグ修正 前のト ... ... nConstraint.include attribute allows creating covering exclusion constraints on PostgreSQL 12+. 新しい ExclusionConstraint.opclasses 属性により、PostgreSQLの演算子クラスを設定できるようになりました。 新しい JSONBAgg.ordering 属性は、集約される要素の並び順 ... ude attributes allow creating covering indexes and covering unique constraints on PostgreSQL 11+. The new UniqueConstraint.opclasses attribute allows setting PostgreSQL operator classes. The QuerySet.update() method now respects the order_by() clause on M ... ... nConstraint.include attribute allows creating covering exclusion constraints on PostgreSQL 12+. 新しい ExclusionConstraint.opclasses 属性により、PostgreSQLの演算子クラスを設定できるようになりました。 新しい JSONBAgg.ordering 属性は、集約される要素の並び順 ... ude attributes allow creating covering indexes and covering unique constraints on PostgreSQL 11+. The new UniqueConstraint.opclasses attribute allows setting PostgreSQL operator classes. The QuerySet.update() method now respects the order_by() clause on M ... ... ns. You can now register custom serializers for migrations. モデル ¶ Added support for PostgreSQL operator classes ( Index.opclasses ). Added support for partial indexes ( Index.condition ). Added the NullIf and Reverse database functions, as well as many ... ... ns. You can now register custom serializers for migrations. モデル ¶ Added support for PostgreSQL operator classes ( Index.opclasses ). Added support for partial indexes ( Index.condition ). Added the NullIf and Reverse database functions, as well as many ... 2026年10月08日