How Golang DB migration tool work?

Simplify Complexity
2 min readJan 28, 2022

migrate

Database migrations tool is written in Go. Use as CLI or import as a library.

  • Migrate reads migrations from sources and applies them in the correct order to a database.

The migration tool uses a schema_migrations table. One table exists for one DB.

mysql> select * from schema_migrations;
+---------+-------+
|

--

--

Simplify Complexity

Golang, Distributed Systems, File Systems, Python, C/C++, Linux