Database Migrations

Hi all. With the introduction of Git and the doors it opens for CI and deployment options, I thought it would be worth sharing a database migration tool I came across which seems quite neat.

Database migrations are a way of programmatically defining your database schema changes, so you and other developers can easily ensure that the database schema you’re using is consistent. It’s essentially like version control for your database schema and is very popular in most MVC frameworks that utilise relational databases.

This tool also has some other advantages such as database seeding; prepopulating the database with data.

Anyways, thought I’d share as I’m sure more people will start to move away from the cPanel hosting providers of yester-year and move towards modern CI and auto-deployment options.

https://phinx.org/

All the best.

Community Page
Last updated: