<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="https://inhere.github.io/feed_style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans">
    <tabi:metadata xmlns:tabi="https://github.com/welpo/tabi">
        <tabi:base_url>https:&#x2F;&#x2F;inhere.github.io</tabi:base_url>
        <tabi:separator>
            •
        </tabi:separator>
        <tabi:about_feeds>这是Web Feed，又称为Atom Feed，把现在的网址复制到新闻阅读器即可订阅本站文章。造访「About Feeds」来了解更多资讯。</tabi:about_feeds>
        <tabi:visit_the_site>造访网站</tabi:visit_the_site>
        <tabi:recent_posts>近期文章</tabi:recent_posts>
        <tabi:last_updated_on>更新于 $DATE</tabi:last_updated_on>
        <tabi:default_theme></tabi:default_theme>
        <tabi:post_listing_date>date</tabi:post_listing_date>
        <tabi:current_section>miglite</tabi:current_section>
    </tabi:metadata><link rel="extra-stylesheet" href="https://inhere.github.io/skins/blue.css?h=a4dc1e94d3f5759784d2" /><title>Inhere's Site - miglite</title>
        <subtitle>Inhere&#x27;s site, blogs and project docs</subtitle>
    <link href="https://inhere.github.io/tags/miglite/atom.xml" rel="self" type="application/atom+xml"/>
    <link href="https://inhere.github.io/tags/miglite/" rel="alternate" type="text/html"/>
    <generator uri="https://www.getzola.org/">Zola</generator><updated>2026-06-18T15:36:21+00:00</updated><id>https://inhere.github.io/tags/miglite/atom.xml</id><entry xml:lang="zh-Hans">
        <title>miglite：用原始 SQL 文件管理数据库迁移</title>
        <published>2026-06-18T15:36:21+00:00</published>
        <updated>2026-06-18T15:36:21+00:00</updated>
        <author>
            <name>Inhere</name>
        </author>
        <link rel="alternate" href="https://inhere.github.io/blog/2026/gookit-miglite-intro/" type="text/html"/>
        <id>https://inhere.github.io/blog/2026/gookit-miglite-intro/</id>
        <summary type="html">数据库迁移工具有两类。一类想帮你描述表结构，再生成 SQL；另一类只管把你写好的 SQL 按顺序跑完，并记录哪些已经执行过。
github.com/gookit/miglite 选的是后者。它不试图替代 SQL，也不默认拉一堆数据库驱动进来。它做的事情很窄：发现迁移文件、解析 UP/DOWN 区块、在事务里执行 SQL，并把执行状态记到数据库里。
…</summary>
        </entry>
</feed>
