Terminal ui for managing migrations based on golang-migrate
Now lazymigrate supports PostgreSQL, MySQL and sqlite
lazymigrate can guess connection string if you have specific fields in .env file
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
Or
go install github.com/Vaniog/lazymigrate
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