<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Akiniwa</author_name>
  <author_url>https://blog.hatena.ne.jp/Akiniwa/</author_url>
  <blog_title>忘れないようにメモっとく</blog_title>
  <blog_url>https://akiniwa.hatenablog.jp/</blog_url>
  <categories>
    <anon>django</anon>
    <anon>sqlite</anon>
  </categories>
  <description>Djangoのmodels.pyを変更したあと、python manage.py syncdbで変更が反映されない。 データが既に入っているときにスキーマを変更するのはまずいので、普通に考えたら当然。一度、DBのデータを別ファイルに保存した後に、データをリセット、スキーマが更新されたら、保存しておいたデータを流し込む。 という流れをコマンドでできると思ったけど、データをリセットする部分(python manage.py flush)はsyncdbの直後まで戻すコマンドなので、スキーマの変更はできない。 きれいにやるにはSouthを使うと良いらしい。(今度やる)今回は、sqliteをファイルごと…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakiniwa.hatenablog.jp%2Fentry%2F2013%2F10%2F08%2F101002&quot; title=&quot;DjangoでDBのスキーマ変更 ~ sqlite - 忘れないようにメモっとく&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-10-08 10:10:02</published>
  <title>DjangoでDBのスキーマ変更 ~ sqlite</title>
  <type>rich</type>
  <url>https://akiniwa.hatenablog.jp/entry/2013/10/08/101002</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
