<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ForgeSchema on SoftDevStudio.com</title>
    <link>https://softdevstudio.com/tags/forgeschema/</link>
    <description>Recent content in ForgeSchema on SoftDevStudio.com</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 03 Nov 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://softdevstudio.com/tags/forgeschema/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>ForgeSchema Now Manages Enums, Arrays and Views</title>
      <link>https://softdevstudio.com/forgeschema-now-manages-enums-arrays-and-views/</link>
      <pubDate>Tue, 03 Nov 2026 00:00:00 +0000</pubDate>
      <guid>https://softdevstudio.com/forgeschema-now-manages-enums-arrays-and-views/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://forgeschema.com/forgeschema-now-manages-enums-arrays-and-views-and-posts-plans-on-pull-requests/&#34;&gt;ForgeSchema 0.4.0&lt;/a&gt; reads, plans and verifies enum types, array columns and plain views, which many real PostgreSQL schemas couldn&amp;rsquo;t be managed without. When a plan renames, converts or drops a column a view reads, the views are dropped first and created again after, in dependency order, in the same transaction. It runs on PostgreSQL 16, 17 and 18, and a GitHub Action now posts &lt;code&gt;plan --explain&lt;/code&gt; on pull requests and fails the check when a plan is blocked.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ForgeSchema Builds Indexes Online and Plans Drops by Name</title>
      <link>https://softdevstudio.com/forgeschema-builds-indexes-online-and-plans-drops-by-name/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://softdevstudio.com/forgeschema-builds-indexes-online-and-plans-drops-by-name/</guid>
      <description>&lt;p&gt;ForgeSchema 0.3.0 went out on 18 October, a few hours after the &lt;a href=&#34;https://softdevstudio.com/forgeschema-second-alpha-reads-defaults-identity-columns-and-foreign-keys/&#34;&gt;second alpha&lt;/a&gt;. It&amp;rsquo;s the first release without an alpha label, and the first one CI published by itself once the tests passed on PostgreSQL 16.10 and 17.6.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;plan --online&lt;/code&gt; builds new indexes and unique constraints on existing tables with &lt;code&gt;CREATE INDEX CONCURRENTLY&lt;/code&gt;, so writes keep going on a big table. If a build fails, usually over duplicates, you fix the data and run the same plan again, and it finishes where it stopped. Check constraints made of simple comparisons, like &lt;code&gt;total &amp;gt;= 0&lt;/code&gt; or &lt;code&gt;status IN (&#39;active&#39;, &#39;closed&#39;)&lt;/code&gt;, now go through inspect, plan, apply and verify.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ForgeSchema Second Alpha Reads Defaults, Identity Columns and Foreign Keys</title>
      <link>https://softdevstudio.com/forgeschema-second-alpha-reads-defaults-identity-columns-and-foreign-keys/</link>
      <pubDate>Sun, 18 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://softdevstudio.com/forgeschema-second-alpha-reads-defaults-identity-columns-and-foreign-keys/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://softdevstudio.com/forgeschema-ships-its-first-alpha-a-go-engine-that-refuses-stale-postgresql-migration-plans/&#34;&gt;ForgeSchema&amp;rsquo;s first alpha&lt;/a&gt; could only read a PostgreSQL schema with no defaults, no identity columns, no unique constraints and no foreign keys. Most real app schemas have all four, so it mostly answered &amp;ldquo;unsupported&amp;rdquo;. The &lt;a href=&#34;https://forgeschema.com/forgeschema-second-alpha-handles-real-postgresql-schemas/&#34;&gt;second alpha&lt;/a&gt;, 0.2.0-alpha.1, went out on 18 October as a &lt;a href=&#34;https://github.com/ForgeSchema/forgeschema/releases/tag/v0.2.0-alpha.1&#34;&gt;prerelease on GitHub&lt;/a&gt; and reads them.&lt;/p&gt;&#xA;&lt;p&gt;Inspect, plan, apply and verify now handle varchar, char and numeric columns, defaults such as &lt;code&gt;now()&lt;/code&gt; and &lt;code&gt;gen_random_uuid()&lt;/code&gt;, identity columns, unique constraints and indexes, and foreign keys with their delete and update actions. Plans can add a required column that has a default, widen a varchar or numeric column, change nullability or a default, and add constraints and foreign keys to tables already holding data. Each step says what happens to existing rows. If the data doesn&amp;rsquo;t fit, say a NULL where the plan asks for NOT NULL, the whole migration rolls back with PostgreSQL&amp;rsquo;s own error. Drops and most type conversions stay blocked.&lt;/p&gt;</description>
    </item>
    <item>
      <title>ForgeSchema Ships Its First Alpha, a Go Engine That Refuses Stale PostgreSQL Migration Plans</title>
      <link>https://softdevstudio.com/forgeschema-ships-its-first-alpha-a-go-engine-that-refuses-stale-postgresql-migration-plans/</link>
      <pubDate>Thu, 15 Oct 2026 00:00:00 +0000</pubDate>
      <guid>https://softdevstudio.com/forgeschema-ships-its-first-alpha-a-go-engine-that-refuses-stale-postgresql-migration-plans/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://forgeschema.com/introduction/&#34;&gt;ForgeSchema&lt;/a&gt;, the studio&amp;rsquo;s ninth project, is a schema evolution engine for PostgreSQL, written in Go. Its &lt;a href=&#34;https://forgeschema.com/alpha-release/&#34;&gt;first alpha&lt;/a&gt;, 0.1.0-alpha.1, went out on 15 October as a &lt;a href=&#34;https://github.com/ForgeSchema/forgeschema/releases/tag/v0.1.0-alpha.1&#34;&gt;prerelease on GitHub&lt;/a&gt;, with command-line binaries for Linux, macOS and Windows on x86-64 and ARM64.&lt;/p&gt;&#xA;&lt;h2 id=&#34;every-step-written-down&#34;&gt;Every Step Written Down&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;forgeschema inspect&lt;/code&gt; takes a read-only snapshot of a PostgreSQL 16 or 17 schema as JSON, and the target is written in YAML. &lt;code&gt;plan&lt;/code&gt; compares the two offline and writes out both schemas with a SHA-256 fingerprint for each, then the operations in order, each with its SQL and a plain-language explanation. &lt;code&gt;--explain&lt;/code&gt; lays the same plan out as plain text.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
