per page, with , order by , clip by
Results of 1 - 10 of about 22 for schema (0.003 sec.)
マイグレーション・オペレーション 12609
マイグレーション・オペレーション マイグレーションファイルは一つ以上の オペレーション 、データベースに対してマイグレーションが行うべきオペレーションを宣言的に保持するオブジェクト、から構成されます。 Django はこれらの Operation オブジェクトも ... です)。フィールドが null 許容でなく、デフォルト値を持たない場合、この操作は不可逆です。 Changed in Django 6.0: BaseDatabaseSchemaEditor and PostgreSQL backends no longer use CASCADE to delete dependent related database objects, such as views. Any depen ... 履歴において処理の場所が一致している履歴を反映したモデルを含んだ django.apps.registry.Apps のインスタンスであり、第二引数は SchemaEditor のインスタンスです。 reverse_code 引数はマイグレーションを元に戻す際に呼び出されます。この呼び出し可能オブジェクトは ... 用いて Country モデル上の初期オブジェクトを追加する例を示します: from django.db import migrations def forwards_func ( apps , schema_editor ): # We get the model from the versioned app registry; # if we directly import it, it'll be the wrong version Count ...
https://man.mtool.work/django/6.1/ref/migration-operations.html
Django 2.0.10 リリースノート 11969
Django 2.0.10 リリースノート January 4, 2019 Django 2.0.10 fixes a security issue and several bugs in 2.0.9. CVE-2019-3498: Content spoofing possibility in the default 404 page An attacker could craft a malicious URL that could make spoofed ... ) in the WKBWriter class in an attempt to fix a random crash involving LooseVersion since Django 2.0.6 ( #29959 ). Fixed a schema corruption issue on SQLite 3.26+. You might have to drop and rebuild your SQLite database if you applied a migration while ... using an older version of Django with SQLite 3.26 or later ( #29182 ). Prevented SQLite schema alterations while foreign key checks are enabled to avoid the possibility of schema corruption ( #30023 ). ...
https://man.mtool.work/django/6.1/releases/2.0.10.html
Django 2.1.5 リリースノート 11716
Django 2.1.5 リリースノート January 4, 2019 Django 2.1.5 fixes a security issue and several bugs in 2.1.4. CVE-2019-3498: Content spoofing possibility in the default 404 page An attacker could craft a malicious URL that could make spoofed c ... the issue for custom templates that use the path. バグ修正 Fixed compatibility with mysqlclient 1.3.14 ( #30013 ). Fixed a schema corruption issue on SQLite 3.26+. You might have to drop and rebuild your SQLite database if you applied a migration while ... using an older version of Django with SQLite 3.26 or later ( #29182 ). Prevented SQLite schema alterations while foreign key checks are enabled to avoid the possibility of schema corruption ( #30023 ). Fixed a regress ...
https://man.mtool.work/django/6.1/releases/2.1.5.html
データベースのマイグレーションの作成方法 10319
データベースのマイグレーションの作成方法 このドキュメントでは、遭遇する可能性のあるいくつかのシナリオに対する、データベースのマイグレーションの構成方法と書き方について説明します。マイグレーションに関する入門的な資料を探しているなら、 トピッ ... ません。例えば、特定のデータベースに対してのみマイグレーションを実行したい場合です。 これを行うには、 RunPython 操作の中で、 schema_editor.connection.alias 属性を見て、データベース接続のエイリアスを確認します: from django.db import migrations def forward ... s ( apps , schema_editor ): if schema_editor . connection . alias != "default" : return # Your migration code goes here class Migration ( mi ... return True これをマイグレーションに利用するには、次のようにします: from django.db import migrations def forwards ( apps , schema_editor ): # Your migration code goes here ... class Migration ( migrations . Migration ): dependencies = [ # Dependencies ...
https://man.mtool.work/django/6.1/howto/writing-migrations.html
SchemaEditor 9427
SchemaEditor class BaseDatabaseSchemaEditor [ソース] Django のマイグレーションシステムは2つの部分に分かれています。データベースに対してどのような操作を実行するべきかを計算してその結果を保管するロジックの部分 ( django.db.migrations )と、「モ ... 」や「フィールドを削除する」といった操作を SQL に変換する、データベースの抽象レイヤーの部分です。後者の仕事を担当するのが、 SchemaEditor です。 Django を使っている普通の開発者が SchemaEditor を直接扱うことはほとんどありませんが、自前のマイグレーションシ ... た場合には、SQL を書くのではなく、こちらを選びましょう。 Django のデータベースのバックエンドは、それぞれ対応するバージョンの SchemaEditor を提供しており、好きなときに connection.schema_editor() コンテキストマネージャを使ってアクセスできます。 with connec ... tion . schema_editor () as schema_editor : schema_editor . delete_model ( MyModel ) これは、トランザクションや遅延SQL ( ForeignKey 制約の ...
https://man.mtool.work/django/6.1/ref/schema-editor.html
Django 1.7.4 リリースノート 8787
Django 1.7.4 リリースノート January 27, 2015 Django 1.7.4 fixes several bugs in 1.7.3. バグ修正 Fixed a migration crash when unapplying contrib.contenttypes 's or contrib.auth 's first migration ( #24075 ). Made the migration's RenameModel ... the static.serve view from producing ResourceWarning s in certain circumstances (security fix regression, #24193 ). Fixed schema check for ManyToManyField to look for internal type instead of checking class instance, so you can write custom m2m-like f ...
https://man.mtool.work/django/6.1/releases/1.7.4.html
Djangoソースコードレポジトリ 8417
Djangoソースコードレポジトリ Djangoアプリケーションを本番環境にデプロイするときは、 公式パッケージのDjangoリリース をほぼ常に使いたくなるでしょう。 しかし、次期リリースの開発中のコードを試したり、Djangoの開発に貢献したい場合は、Djangoのソー ... features they aimed to implement were never finished: full-history generic-auth multiple-db-support per-object-permissions schema-evolution schema-evolution-ng search-api sqlalchemy Finally, under the archive/ prefix, the repository contains soc20XX/<p ...
https://man.mtool.work/django/6.1/internals/git.html
Pythonモジュール索引 8417
Pythonモジュール索引 a | c | d | f | h | m | s | t | u | v a django.apps c django.conf django.conf.urls django.conf.urls.i18n django.contrib django.contrib.admin Django's admin site. django.contrib.admindocs Django's admin documentation gen ... ilities and base classes d django.db django.db.backends Core signals sent by the database wrapper. django.db.backends.base.schema django.db.migrations Schema migration support for Django models django.db.migrations.operations django.db.models django.db ...
https://man.mtool.work/django/6.1/py-modindex.html
Django 1.7 リリースノート 8147
Django 1.7 リリースノート September 2, 2014 Django 1.7 へようこそ! このリリースノートでは、 バージョン 1.7 の新機能 と、Django 1.6 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。 非推奨サイクルが終了した ... support policy , Django 1.6 will continue to receive security support until the release of Django 1.8. Django 1.7 の新機能 Schema migrations Django now has built-in support for schema migrations. It allows models to be updated, changed, and deleted by ... is should make it easier to diagnose import issues such as import loops. New method on Field subclasses To help power both schema migrations and to enable easier addition of composite keys in future releases of Django, the Field API now has a new requi ... your model classes); this has the added advantage that your initial data will not need updating every time you change the schema. Additionally, like the rest of Django's old syncdb code, initial_data has been started down the deprecation path and will ...
https://man.mtool.work/django/6.1/releases/1.7.html
Django 6.1.1 release notes 8147
Django 6.1.1 release notes September 2, 2026 Django 6.1.1 fixes one crash in Django 5.2 and several bugs in 6.1. バグ修正 Fixed a crash in Django 5.2 when combining distinct(*fields) with order_by() and values() and using two lookup paths r ... perations that changed only the Python-level on_delete option of ForeignKey or OneToOneField fields to perform unnecessary schema changes ( #37260 ). Fixed a bug in Django 6.1 where DecimalField without max_digits and decimal_places caused a crash when ...
https://man.mtool.work/django/6.1/releases/6.1.1.html
PREV 1 2 3 NEXT