golang-migrate Questions
5
Solved
I am a new user of golang-migrate.
I have run some migrations that executed with success.
I am on development mode so I want to fore re-run the migrations so in psql shell and after connecting to...
Notarial asked 6/1, 2020 at 17:12
6
Steps followed as in the documentation
$ curl -L https://packagecloud.io/golang-migrate/migrate/gpgkey | apt-key add -
$ echo "deb https://packagecloud.io/golang-migrate/migrate/ubuntu/ $(lsb_...
Butanone asked 14/3, 2021 at 6:21
6
I decided to use gorm as my ORM. I wanted to do a migration using golang-migrate/migrate because, it looks like, GORM does not have versioned migration files. And I rather, do migration using CLI, ...
Indiscriminate asked 24/10, 2020 at 4:50
1
Solved
I'm trying to use golang-migrate to migrate a sql file into my postgresql database. I'm likely doing this wrong, but when I run the command to migrate it says that no scheme is found:
$ go run ./c...
Afforest asked 5/4, 2022 at 23:26
2
Solved
In my internal/platform/database/database.go
import (
"github.com/golang-migrate/migrate"
"github.com/jmoiron/sqlx"
_ "github.com/lib/pq"
)
func RunMigrations() error {
m, err := migrate.New...
Thermobarometer asked 28/3, 2020 at 18:31
1
© 2022 - 2025 — McMap. All rights reserved.