... ssue wasn't identified there, out of an abundance of caution it's also updated to use textContent . バグ修正 Fixed missing varchar/text_pattern_ops index on CharField and TextField respectively when using AddField on PostgreSQL ( #26889 ). ... ... ssue wasn't identified there, out of an abundance of caution it's also updated to use textContent . バグ修正 Fixed missing varchar/text_pattern_ops index on CharField and TextField respectively when using AddField on PostgreSQL ( #26889 ). Python 2 で非 ... ... る必要があります。 name パラメータを operator class の名前に設定します。 例: Index ( OpClass ( Lower ( "username" ), name = "varchar_pattern_ops" ), name = "lower_username_idx" , ) varchar_pattern_ops を使用して Lower('username') にインデックスを作成します ... ... model instance assignment data loss check to Model.save() to allow easier usage of in-memory models ( #25160 ). Prevented varchar_patterns_ops and text_patterns_ops indexes for ArrayField ( #25180 ). ... ... rldBorder -- CREATE TABLE "world_worldborder" ( "id" bigint NOT NULL PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY , "name" varchar ( 50 ) NOT NULL , "area" integer NOT NULL , "pop2005" integer NOT NULL , "fips" varchar ( 2 ) NOT NULL , "iso2" varchar ( ... 2 ) NOT NULL , "iso3" varchar ( 3 ) NOT NULL , "un" integer NOT NULL , "region" integer NOT NULL , "subregion" integer NOT NULL , "lon" double precision ... ... 4.2 で生じたリグレッションに対処し、PostgreSQL 上で決定論的照合順序 (collation) を使用して CharField と TextField に対する varchar/text_pattern_ops インデックスを作成する機能が復元されました ( #34932 )。 ... ... lter ( #25812 ). Fixed a state bug when migrating a SeparateDatabaseAndState operation backwards ( #25896 ). Fixed missing varchar/text_pattern_ops index on CharField and TextField respectively when using AlterField on PostgreSQL ( #25412 ). Fixed a sta ... ... ). Fixed a regression in CommonMiddleware causing If-None-Match checks to always return HTTP 200 ( #25900 ). Fixed missing varchar/text_pattern_ops index on CharField and TextField respectively when using AlterField on PostgreSQL ( #25412 ). Fixed admin ... ... 1つずつ指定しなければなりません。 例: UniqueConstraint ( name = "unique_username" , fields = [ "username" ], opclasses = [ "varchar_pattern_ops" ] ) これは username に varchar_pattern_ops を使用する一意なインデックスを作成します。 opclasses はPostgreSQL以 ... ... したい場合があります。 Django の組み込みフィールド型は、データベースで利用可能な全てのカラム型をカバーしているわけではなく、 VARCHAR や INTEGER のような一般的な型のみに対応しています。地理的な多角形や PostgreSQL カスタム型 のようなユーザが作成した型など、 ... ジの例でいう Hand )。 文字列 None (フィールドが null=True を許す場合) 私たちの HandField クラスでは、データをデータベースの VARCHAR フィールドとして保存しているため、 from_db_value() で文字列と None を処理できる必要があります。 to_python() では、 Hand の ... ( l ) for l in ( value . north , value . east , value . south , value . west )] ) 警告 カスタムフィールドでMySQLの CHAR 、 VARCHAR 、 TEXT 型を使用する場合は、 get_prep_value() が常に文字列型を返すようにする必要があります。MySQL はこれらの型に対して整数 ... 2026年10月08日