epay-migrator

module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: AGPL-3.0

README

EPay Migrator

This is a simple migrator for EPay. It is based on the gorm library.

Usage

First, you need to build the binary:

go build -o migrator cmd/migrator/main.go

Migrate

You need to set the following environment variables:

export DB_HOST=localhost
export DB_PORT=3306
export DB_USER=epay
export DB_PASSWORD=[password]
export DB_NAME=epay

you can also set by using the .env file

Then you can run the migrator:

./migrator --action migrate

If you want to debug the migrator, you can set the --debug flag:

./migrator --action migrate --debug

Directories

Path Synopsis
cmd
internal
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL