Skip to content

firsttimeeagle-corp/simple-bank

Repository files navigation

Simple Bank

DB Migration

To create a migration files:

$ migrate create -ext sql -dir db/migration -seq <migration_name>

To run a migration:

$ migrate -path db/migration -database "postgresql://<username>:<password>@<host>:<port>/<db_name>?sslmode=disable" -verbose up