-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Lazymigrate | ||
|
||
![logo](readme/logo.png) | ||
|
||
Terminal ui for managing migrations based on [golang-migrate](https://github.com/golang-migrate/migrate) | ||
|
||
![demo](readme/demo.gif) | ||
|
||
### Configuration | ||
|
||
Now lazymigrate supports PostgreSQL, MySQL and sqlite | ||
|
||
lazymigrate can guess connection string if you have specific fields in __.env__ file | ||
|
||
[examples](#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 | ||
``` | ||
|
||
### 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 | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.