cacert-boardvoting/db/migrations_embedded.go
Jan Dittberner 4dd5e09820 Embed database migrations
- switch from goose to github.com/rubenv/sql-migrate
- move assets (static, templates, migrations) to boardvoting package
- add generated boardvoting/assets.go
- remove unused static files from static directory
- add package db with db migration configuration
2018-03-29 20:08:41 +02:00

14 lines
285 B
Go

package db
import (
"git.cacert.org/cacert-boardvoting/boardvoting"
"github.com/rubenv/sql-migrate"
)
func Migrations() migrate.MigrationSource {
return &migrate.AssetMigrationSource{
Asset: boardvoting.Asset,
AssetDir: boardvoting.AssetDir,
Dir: "migrations",
}
}