<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch-saeki</author_name>
  <author_url>https://blog.hatena.ne.jp/ch-saeki/</author_url>
  <blog_title>k.saeki note</blog_title>
  <blog_url>https://ch-saeki.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>開発用ブランチを使っているテスト環境で、migrateに失敗した時に手動解決(schema_migrationsをいじいじとか)したせいで、初回migrate時とバックアップからリストアしたdbで差分が出てしまっているようなのでスキーマだけ比較したくなった。 sqlのdiff用のツールとかもあるが結局以下の方法でdumpしたファイルを見るのが一番早かった。修正は手作業になるが仕方あるまい。 mysqldump -u user -p passwd -h 127.0.0.1 --all-databases --no-data --skip-create-options &gt; schema_dump.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fch-saeki.hatenadiary.com%2Fentry%2F2022%2F01%2F31%2F145426&quot; title=&quot;MySQLでdbのスキーマの差分を比較したい. - k.saeki note&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>2022-01-31 14:54:26</published>
  <title>MySQLでdbのスキーマの差分を比較したい.</title>
  <type>rich</type>
  <url>https://ch-saeki.hatenadiary.com/entry/2022/01/31/145426</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
