per page, with , order by , clip by
Results of 1 - 10 of about 18 for alter (0.005 sec.)
SchemaEditor 15425
SchemaEditor class BaseDatabaseSchemaEditor [ソース] Django のマイグレーションシステムは2つの部分に分かれています。データベースに対してどのような操作を実行するべきかを計算してその結果を保管するロジックの部分 ( django.db.migrations )と、「モ ... BaseDatabaseSchemaEditor. remove_constraint ( model , constraint ) [ソース] model のテーブルから constraint を削除します。 alter_unique_together() BaseDatabaseSchemaEditor. alter_unique_together ( model , old_unique_together , new_unique_together ) [ソ ... ue_together 値を変更します。これにより、新しい値に一致するまで、モデルのテーブルからユニーク制約が追加または削除されます。 alter_index_together() BaseDatabaseSchemaEditor. alter_index_together ( model , old_index_together , new_index_together ) [ソース ... ether の値を変更します。これにより、インデックスがモデルのテーブルに追加または削除され、新しい値に一致するようになります。 alter_db_table() BaseDatabaseSchemaEditor. alter_db_table ( model , old_db_table , new_db_table ) [ソース] モデルのテーブル名を ...
https://man.mtool.work/django/6.1/ref/schema-editor.html
FAQ: データベースとモデル 9214
FAQ: データベースとモデル Django が実行している生の SQL クエリを見られますか? Django の設定ファイルの DEBUG が True になっていることを確認します。次に、以下のコードを実行してください。 >>> from django.db import connection >>> connection . q ... jango コード中に特殊なケースを追加するのを避けようとします。データベース固有のオプションを使いたければ、あなたが指定したい ALTER TABLE 文を含めた RunSQL を使ったマイグレーションを作成してください。 たとえば、 MySQL を使っていて、 MyISAM ストレージエン ... ジンを使いたい場合、以下のSQLを使ってください: ALTER TABLE myapp_mytable ENGINE = MyISAM ; ...
https://man.mtool.work/django/6.1/faq/models.html
GeoDjango アプリのテスト 8990
GeoDjango アプリのテスト このドキュメントには、 PostGIS ユーザのための追加の注意事項と設定が含まれています。 PostGIS 設定 注釈 以下の設定には合理的なデフォルト値が設定されており、手動で設定する必要はありません。 POSTGIS_VERSION GeoDjango の ... ユーザーのロールをSQLシェルから変更することもできます (既存のスーパーユーザーアカウントから実行されているとして): postgres # ALTER ROLE < user_name > CREATEDB NOSUPERUSER NOCREATEROLE ; データベースのスーパーユーザーを作成する これは、たとえばユーザー作 ... いは、SQLシェルからユーザのロールを変更することもできます (既存のスーパーユーザアカウントから行われると仮定して): postgres # ALTER ROLE < user_name > SUPERUSER ; Windows Windows プラットフォームでは、pgAdmin III ユーティリティを使用して、データベースユー ...
https://man.mtool.work/django/6.1/ref/contrib/gis/testing.html
データベース 8647
データベース Django は次のデータベースを公式にサポートしています。 PostgreSQL MariaDB MySQL Oracle SQLite サードパーティから提供されているデータベースバックエンド も多数あります。 Django はすべてのデータベースで可能な限り多くの機能をサポート ... タを設定しないので、パフォーマンスが少し改善されます。これらのパラメータは postgresql.conf で直接設定することもできますし、 ALTER ROLE でデータベースユーザごとに設定することもできます。 Django はこの最適化なしでも問題なく動作しますが、新しい接続のたびに ... 用していて、サーバーのデフォルトストレージエンジンを変更できない場合、いくつかの選択肢があります。 テーブルが作成された後、 ALTER TABLE ステートメントを実行して、テーブルを新しいストレージエンジン(InnoDBなど)に変換します: ALTER TABLE < tablename > EN ... 未満のカラムを有効にしたい場合は、以下のようなコマンドを実行して、手動で対象のデータベースのカラムを更新する必要があります: ALTER TABLE ` your_table ` MODIFY ` your_datetime_column ` DATETIME ( 6 ) または データマイグレーション の RunSQL オペレーション ...
https://man.mtool.work/django/6.1/ref/databases.html
索引 8424
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... ogin() (Client のメソッド) (django.contrib.auth モジュール) alogout() (Client のメソッド) (django.contrib.auth モジュール) alter_db_table() (BaseDatabaseSchemaEditor のメソッド) alter_db_table_comment() (BaseDatabaseSchemaEditor のメソッド) alter_db_t ... ablespace() (BaseDatabaseSchemaEditor のメソッド) alter_field() (BaseDatabaseSchemaEditor のメソッド) alter_index_together() (BaseDatabaseSchemaEditor のメソッド) alter_unique_to ... gether() (BaseDatabaseSchemaEditor のメソッド) ALTERATION (OperationCategory の属性) AlterConstraint (django.db.migrations.operations のクラス) AlterField (django.db.migration ...
https://man.mtool.work/django/6.1/genindex.html
Django 1.1 リリースノート 8424
Django 1.1 リリースノート July 29, 2009 Django 1.1 へようこそ! Django 1.1 includes a number of nifty new features , lots of bug fixes, and an easy upgrade path from Django 1.0. Backwards-incompatible changes in 1.1 Django has a policy of AP ... 能性があります 。この変更以前の 64 ビットプラットフォームでは、以下に示すように制約名を64ビットで16文字に省略していました。 ALTER TABLE myapp_sometable ADD CONSTRAINT object_id_refs_id_5e8f10c132091d1e FOREIGN KEY ... この変更に伴い、すべてのプラットフ ... ォームで、ワードサイズに関係なく、制約名は32ビットで8文字に省略されるようになります。 ALTER TABLE myapp_sometable ADD CONSTRAINT object_id_refs_id_32091d1e FOREIGN KEY ... As a result of this change, you will not b ...
https://man.mtool.work/django/6.1/releases/1.1.html
データベースのマイグレーションの作成方法 8304
データベースのマイグレーションの作成方法 このドキュメントでは、遭遇する可能性のあるいくつかのシナリオに対する、データベースのマイグレーションの構成方法と書き方について説明します。マイグレーションに関する入門的な資料を探しているなら、 トピッ ... ョン(3つの新しいファイルのうちの最初のファイル)から AddField オペレーションを最後のマイグレーションにコピーし、 AddField を AlterField に変更し、 uuid と models のインポートを追加します。例: 0006_remove_uuid_null.py # Generated by Django A.B on YYYY-MM ... tion ( migrations . Migration ): dependencies = [ ( "myapp" , "0005_populate_uuid_values" ), ] operations = [ migrations . AlterField ( model_name = "mymodel" , name = "uuid" , field = models . UUIDField ( default = uuid . uuid4 , unique = True ), ), ... ld table name from checking with sqlmigrate, new table # name from AuthorBook._meta.db_table. migrations . RunSQL ( sql = "ALTER TABLE core_book_authors RENAME TO core_authorbook" , reverse_sql = "ALTER TABLE core_authorbook RENAME TO core_book_author ...
https://man.mtool.work/django/6.1/howto/writing-migrations.html
ミドルウェア (Middleware) 8201
ミドルウェア (Middleware) ミドルウェアは、Django のリクエスト/レスポンス処理にフックを加えるためのフレームワークです。これは、Django の入力あるいは出力をグローバルに置き換えるための、軽量で低レベルの「プラグイン」システムです。 各ミドルウェ ... aming : response . streaming_content = wrap_streaming_content ( response . streaming_content ) else : response . content = alter_content ( response . content ) 注釈 streaming_content はメモリ上に置けないくらい大きいと想定しておくべきです。レスポンスミ ... りません。典型的なラップの方法は、次のようになります。 def wrap_streaming_content ( content ): for chunk in content : yield alter_content ( chunk ) StreamingHttpResponse は同期イテレータと非同期イテレータの両方を受け付けます。ラッピング関数は一致する必 ...
https://man.mtool.work/django/6.1/topics/http/middleware.html
マイグレーション・オペレーション 8081
マイグレーション・オペレーション マイグレーションファイルは一つ以上の オペレーション 、データベースに対してマイグレーションが行うべきオペレーションを宣言的に保持するオブジェクト、から構成されます。 Django はこれらの Operation オブジェクトも ... なった名称のモデルを追加したと認識してしまうため、そのマイグレーション処理は古いテーブルの全てのデータを消去してしまいます。 AlterModelTable class AlterModelTable ( name , table ) [ソース] 定義しているモデルのテーブル名を変更します( Meta サブクラスの db ... _table オプションを参照します)。 AlterModelTableComment class AlterModelTableComment ( name , table_comment ) [ソース] モデルのテーブルコメント ( Meta サブクラス ... の db_table_comment オプション) を変更します。 AlterUniqueTogether class AlterUniqueTogether ( name , unique_together ) [ソース] モデルのユニーク制約のセットを変更します ( Met ...
https://man.mtool.work/django/6.1/ref/migration-operations.html
Django 1.6 リリースノート 8081
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... ge the column type in your database to benefit from this change. For MySQL, execute this query on your project's database: ALTER TABLE django_comments MODIFY ip_address VARCHAR ( 39 ); For Oracle, execute this query: ALTER TABLE DJANGO_COMMENTS MODIFY ... der their arguments as-is. Django 1.6 starts a process to correct this inconsistency. The future template library provides alternate implementations of cycle and firstof that autoescape their inputs. If you're using these tags, you're encouraged to in ... ute (new in Django 1.6), which is a list of model fields and works in the same way as the ModelForm Meta.fields attribute. Alternatively, you can set the form_class attribute to a ModelForm that explicitly defines the fields to be used. Defining an Up ...
https://man.mtool.work/django/6.1/releases/1.6.html
PREV 1 2 NEXT