JaiDécouvert dbmate (from).

A lightweight, framework-agnostic database migration tool.

Ce projet a commencé en 2015.

Je viens de voir dans mes notes que j’avais déjà regardé ce projet le 15 octobre 2023, donc ce n’est pas vraiment une découverte 🤣.

Il est codé en Golang, chose que j’apprécie pour ce genre d’outil.


Depuis septembre 2022, j’utilise l’outil de migration graphile-migrate. Avant cela j’utilisais Migrate.


Dans ce thread j’ai été surpris de voir ce commentaire :

I’ve always wondered why tools like this cannot become stateless. Most have an up and down action, but I haven’t seen one yet that can run a query to determine if a migration has been applied or not. Then no state tables/artifacts are needed.

Instead of one file with an up and down, there could be two files where each has a predicate and then an action, where the predicate would run to determine if the migration has been applied or not.

En quelques secondes, je pense être capable d’imaginer plusieurs scénarios — que je ne souhaite pas lister ici — pour lesquels son idée ne pourrait pas fonctionner 🤔.


Tous les tags présents dans la note :