mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-02-06 06:08:16 +00:00
starter
This commit is contained in:
13
pkg/migrate/migrate.go
Normal file
13
pkg/migrate/migrate.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package migrate
|
||||
|
||||
import (
|
||||
"wallet-api/pkg/migrate/migrations"
|
||||
|
||||
"github.com/go-pg/pg/v10"
|
||||
)
|
||||
|
||||
func Start(conn *pg.DB) {
|
||||
apiMigration := migrations.ApiMigration{Db: conn}
|
||||
|
||||
apiMigration.Create()
|
||||
}
|
||||
Reference in New Issue
Block a user