<?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>laravelでmigrate機能はとても便利です。 ライブラリ全般に言えることではありますが、1からクエリを書かないので管理のしやすさが格段に上がります。 しかし、生成されたクエリにエラーが発生した場合は、生でクエリを作るのと勝手が違って戸惑う場面もあります。 さて、 今回は、外部キー制約を扱う際に発生しうるエラーと、その対応方法について触れます。 目次 目次 イントロダクション この記事で得られること 環境 状況 実行結果 原因 データの型が適切ではない。 データがユニークではない。 解決方法 参考サイト イントロダクション この記事で得られること migrate時の「Foreign ke…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.websandbag.com%2Fentry%2F2018%2F05%2F23%2F201708&quot; title=&quot;【Laravel】migrate時の「Foreign key constraint is incorrectly formed」エラーの解消方法 - 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>2018-05-23 20:17:08</published>
  <title>【Laravel】migrate時の「Foreign key constraint is incorrectly formed」エラーの解消方法</title>
  <type>rich</type>
  <url>https://blog.websandbag.com/entry/2018/05/23/201708</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
