Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
そこで、Djangoモデルフィールドにデフォルト値を追加して、次のコマンドを実行しました。
$ python manage.py schemamigration myapp --auto
何も変わっていないようです。
なんだ?
ありがとう!
default価値のために移行する必要はありません。なぜなら、デフォルト値はdjangoアプリケーションによって読み取られ、指定されdefaultた値を生成するRaw SQLに追加して、追加/更新の時間を追加するからです。
default
あなたは南でそれを作る必要はありません。すでにそこにあるので、いつでも変更できます。