<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakahashi_h</author_name>
  <author_url>https://blog.hatena.ne.jp/nakahashi_h/</author_url>
  <blog_title>websandbag ブログ</blog_title>
  <blog_url>https://blog.websandbag.com/</blog_url>
  <categories>
    <anon>laravel</anon>
  </categories>
  <description>マイグレーションで外部接続を設定する時に、設定するテーブル名や外部きーが長いと次のようなエラーが出ます。 Syntax error or access violation: 1059 Identifier name 'xxxxxx_foreign' is too long is too long. この場合、短いインデックスを指定する必要があります。 今回は、任意のインデックスを設定する方法について解説します。 初期設定時の命名について laravelのデフォルト設定では、外部接続のインデックスを次のように指定します。 (接続元テーブル名)_(接続先テーブル名) _(外部接続キー)_forei…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.websandbag.com%2Fentry%2F2020%2F04%2F18%2F163820&quot; title=&quot;【Laravel】外部接続のインデックスを任意の名前に変更する - websandbag ブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/n/nakahashi_h/20180506/20180506160600.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-18 16:38:20</published>
  <title>【Laravel】外部接続のインデックスを任意の名前に変更する</title>
  <type>rich</type>
  <url>https://blog.websandbag.com/entry/2020/04/18/163820</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
