<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hidehara</author_name>
  <author_url>https://blog.hatena.ne.jp/hidehara/</author_url>
  <blog_title>AWS / PHP / Python ちょいメモ</blog_title>
  <blog_url>https://hideharaaws.hatenablog.com/</blog_url>
  <categories>
    <anon>mysql</anon>
    <anon>Django</anon>
    <anon>TIPS</anon>
  </categories>
  <description>前回に引き続き、DBを移行する場合にひっかかりそうなTIPS第2弾。Djangoってよりは、Modelの裏側の意識が必要なケースありますね的な話です。MySQL使っていて、こんなエラーが出た時には参考になるかもしれません。 Specified key was too long; max key length is 767 bytes (SQLState:S1000) 今回の結論としては、SQLite -&gt; MySQLにマイグレートする場合は、こんなの気をつけましょうって所です。 VARCHARの最大値は 255 を使う uniqe_together使ってる時は注意が必要 環境は Django …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhideharaaws.hatenablog.com%2Fentry%2F2015%2F03%2F18%2F135322&quot; title=&quot;Django と SQLite/MySQL ： 最大値とUNIQUE - AWS / PHP / Python ちょいメモ&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>2015-03-18 13:53:22</published>
  <title>Django と SQLite/MySQL ： 最大値とUNIQUE</title>
  <type>rich</type>
  <url>https://hideharaaws.hatenablog.com/entry/2015/03/18/135322</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
