mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-02-04 17:22:16 +01:00
8 lines
343 B
Markdown
8 lines
343 B
Markdown
To bring up fresh database:
|
|
migrate.exe -database postgres://user:password@host:port/dbname?sslmode=disable -path /pathto/migrations up
|
|
To tear down database
|
|
migrate.exe -database postgres://user:password@host:port/dbname?sslmode=disable -path /pathto/migrations down
|
|
|
|
|
|
More info:
|
|
https://github.com/golang-migrate/migrate/releases/tag/v4.15.2 |