Jan Dittberner
4dd5e09820
- 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
14 lines
285 B
Go
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",
|
|
}
|
|
}
|