How Golang DB migration tool work?

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;
+---------+-------+
|

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Python Interview Questions You Need to Know to Become a Data Scientist — Part 1

Adventures with IL

Is Low-Code the Future of Software Development ?

A Simple Point System — If Statements

Building SaaS Integrations — A PM’s perspective

Demystifying Planet’s Command Line Tool

Very much like any gadget, the PS5 has framework issues and errors every once in a while.

Flutter Async and Await Part-1

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Simplify Complexity

Simplify Complexity

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

More from Medium

Buffered channel and its blocking behavior

go range variables

Large stream processing in Golang with minimal memory usage

Use Delve to Debug Go Code Instead Of Print Statement