Re: Database schema changes tools - Mailing list pgsql-admin

From Dan Smith
Subject Re: Database schema changes tools
Date
Msg-id CAK50JrzkhMxOT9H3WoJT-8NjDH5c1mygET3Te6kBy6b9mqjJ5g@mail.gmail.com
Whole thread Raw
In response to Database schema changes tools  (edi mari <edim2525@gmail.com>)
List pgsql-admin
I love flyway as opposed to other tools like db-migrate which provide no guarantees, do not enforce order, allow history to be changed, and provides the ability to easily see what migrations have been applied and which are pending.

As for many complaints about the tool from a previous reply, I see them as features (naming restrictions) or there is a readily available solution and good documentation (target var / option flag to migrate up or down to a specific version).

Flyway is probably the easiest solution to implement in a CI/CD pipeline (official docker image available) at this point and can easily be worked into a docker-compose file to support local development and testing.

Generally, I pair this with a linter SQLFluff, anti-pattern checker like sql-check and a custom lint program I wrote to fail the pipeline fast if migrations are added to do certain things as I do not run flyway as an admin.

That being said, what I don't like about flyway is the (Redgate) price tag or needing to manually handle rollbacks by renaming a rollback migration if you want to use the free version.

For that reason alone, I may look into some of the other tools mentioned with flyway being a baseline of what I want in a migration tool.


Best regards,

Dan Smith

On Wed, Oct 19, 2022, 08:26 edi mari <edim2525@gmail.com> wrote:
Hi All,
Are you using database schema change tools to manage your Postgres, like Flyway, Liquibase, and DBmaestro ? 
Can you please recommend or disrecommend 


Thanks 
Edi

pgsql-admin by date:

Previous
From: jagjit singh
Date:
Subject: Re: proper pg_hba config to require ssl from non-local/private ips
Next
From: Sbob
Date:
Subject: pgbackrest questions