make sure that you have golang installed in the version that is specified in the
go.modfile
docker compose up -d
go mod tidygo run ./cmd/server/main.goexport GOOSE_MIGRATION_DIR='./internal/db/migrations'
export GOOSE_DRIVER='postgres'
export GOOSE_DBSTRING='user=postgres password=postgres dbname=postgres host=localhost port=5432'go tool goose create -s INSERT_MIGRATION_NAME sqlgo tool goose upexport GOOSE_MIGRATION_DIR='./internal/db/seeds'
export GOOSE_DRIVER='postgres'
export GOOSE_DBSTRING='user=postgres password=postgres dbname=postgres host=localhost port=5432'go tool goose create -s INSERT_SEED_NAME sql
-no-versioningis fundamental here. you need to provide it to avoid the versioning of the seeds.
go tool goose -no-versioning upgo tool jet -dsn='postgresql://postgres:postgres@localhost:5432/postgres?sslmode=disable' -schema='public' -path='./gen'