イクバルです。 syncdbはalterのsqlを実行することはないので、既存のテーブルやデータを変更することはありません(できません)。新規モデルを作成したときだけsyncdbが有効になります。
既存のmodels.pyにfieldを追加されたら、手でdbも変更しないといけないのです。 HTH - i 2009/3/17 [email protected] <[email protected]>: > > > お世話になります。 > > すでに稼働しているプロジェクトのmodels.py の中にフィールドを追加したい場合、 > 編集したのち > 「manage.py syncdb > をおこなう。」 > > とあるサイトで見たのですが、新しくDBの中にフィールドが追加されることになるので > 既存のDBデータは消えたりしないのでしょうか。 > > 具体的な方法を教えていただけると大変助かります。 > > 宜しくお願いします。 > > > > > -- Best, Iqbal Abdullah Founder & Representative Director MARIMORE LLC http://www.marimore.co.jp The More The Mari http://themorethemari.blogspot.com --~--~---------~--~----~------------~-------~--~----~ ----------------- http://djangoproject.jp/ ----------------- You received this message because you are subscribed to the Google Groups "django-ja" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-ja -~----------~----~----~----~------~----~------~--~---
