This commit is contained in:
cdricms
2025-01-28 17:43:40 +01:00
parent 501ffaea17
commit b13877649e

View File

@@ -1,15 +1,15 @@
# Prerequisites for development
- Installing dependencies: `go mod tidy`
- Verifying that the `.env` file is present.
- Verifying that the `.env` file is present and well configured.
## Running migrations
A migration cli is made available through the package: `./cmd/migrate`
At first it is need to run: `go run ./cmd/migrate db init` to initialize the
At first it is needed to run: `go run ./cmd/migrate db init` to initialize the
tables needed by golang's bun.
Then, if there migrations needed to be applied, run: `go run ./cmd/migrate db migrate`
Then, if there are migrations needed to be applied, run: `go run ./cmd/migrate db migrate`
Everything should be taken care of.