Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1020 Bytes

README.md

File metadata and controls

62 lines (42 loc) · 1020 Bytes

Lazymigrate

logo

Terminal ui for managing migrations based on golang-migrate

demo

Configuration

Now lazymigrate supports PostgreSQL, MySQL and sqlite

lazymigrate can guess connection string if you have specific fields in .env file

examples

Also it parses env variables from .lazymigrate file

You can set up config directly with variables:

LAZYMIGRATE_URL=postgres://root:root@localhost:5432/root?sslmode=disable
LAZYMIGRATE_SOURCE=migrations

Install

Releases

Or

go install github.com/Vaniog/lazymigrate

Examples

Naming based on docker images envs naming

Postgres

POSTGRES_USER=root
POSTGRES_PASSWORD=root
POSTGRES_HOST=localhost
POSTGRES_DB=root
POSTGRES_PORT=5432

MySQL

MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_HOST=localhost
MYSQL_DATABASE=root
MYSQL_PORT=3306

Sqlite

SQLITE_DB=app.db