mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-15 08:25:09 +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 |