... aint 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 uniquenes ... 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 Index ... 内に作成されます。 参考 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以外の ... ... 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 ). ... ... 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 ... ... ions. 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 ... ... ed. The name argument of django.utils.functional.cached_property() is deprecated as it's unnecessary as of Python 3.6. The opclasses argument of django.contrib.postgres.constraints.ExclusionConstraint is deprecated in favor of using OpClass() in Exclusion ... ... utils.functional.cached_property() の name 引数は削除されます。 django.contrib.postgres.constraints.ExclusionConstraint の opclasses 引数は削除されます。 ドキュメント化されていない SimpleTestCase.assertFormError() および assertFormsetError() への errors=N ... ... ils.functional.cached_property() の name 引数が削除されました。 django.contrib.postgres.constraints.ExclusionConstraint の opclasses 引数が削除されました。 ドキュメント化されていなかった、 SimpleTestCase.assertFormError() および assertFormsetError() に er ... ... db.models のクラス) only() (django.db.models.query.QuerySet モジュール) OpClass (django.contrib.postgres.indexes のクラス) opclasses (Index の属性) (UniqueConstraint の属性) open() (FieldFile のメソッド) (File のメソッド) (Storage のメソッド) OpenLayersWi ... 2026年10月08日