Skip to content

dnnyjns/migration

Repository files navigation

migration

Usage

Create a new migration

package main

import (
	"github.com/dnnyjns/migration"
)

func main() {
  migration.Create("first_migration")
}

Run migrations

package main

import (
	_ "github.com/username/repo/migrations"
	"github.com/dnnyjns/migration"
)

func main() {
  db := setupDB()
  defer db.Close()
  migration.Run(db)
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published