<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Flyway on Java &amp; Software Architecture Knowledge Hub</title><link>https://samirsahoo.github.io/design-patterns-hub/tags/flyway/</link><description>Recent content in Flyway on Java &amp; Software Architecture Knowledge Hub</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 Samir Kumar Sahoo (https://github.com/samirsahoo). All rights reserved.</copyright><atom:link href="https://samirsahoo.github.io/design-patterns-hub/tags/flyway/index.xml" rel="self" type="application/rss+xml"/><item><title>Auditing and Database Migrations with Flyway and Liquibase</title><link>https://samirsahoo.github.io/design-patterns-hub/spring/data/auditing-and-migrations/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://samirsahoo.github.io/design-patterns-hub/spring/data/auditing-and-migrations/</guid><description>&lt;h2 id="simple-definition"&gt;Simple definition&lt;a class="heading-anchor" href="#simple-definition" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Auditing&lt;/strong&gt; records &lt;strong&gt;who changed what and when&lt;/strong&gt;: simple timestamps and users on each row, or a full history of every revision.&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Database migrations&lt;/strong&gt; are &lt;strong&gt;versioned, repeatable scripts&lt;/strong&gt; that evolve the schema alongside the code. &lt;strong&gt;Flyway&lt;/strong&gt; and &lt;strong&gt;Liquibase&lt;/strong&gt; apply them automatically at startup or in a pipeline.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="the-problem"&gt;The problem&lt;a class="heading-anchor" href="#the-problem" aria-label="Link to this section"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&amp;ldquo;Who changed this customer&amp;rsquo;s limit?&amp;rdquo; cannot be answered without auditing. Regulators often require it. Schemas changed by hand drift between environments, and &lt;code&gt;spring.jpa.hibernate.ddl-auto=update&lt;/code&gt; in production eventually corrupts or locks a table.&lt;/p&gt;</description></item></channel></rss>