forked from wgroeneveld/go-jamming
16 lines
306 B
Go
16 lines
306 B
Go
package db
|
|
|
|
import (
|
|
"brainbaking.com/go-jamming/common"
|
|
)
|
|
|
|
// Migrate self-checks and executes necessary DB migrations, if any.
|
|
func Migrate() {
|
|
cnf := common.Configure()
|
|
repo := NewMentionRepo(cnf)
|
|
|
|
// no migrations needed anymore/yet
|
|
repo.approvedRepo.db.Shrink()
|
|
repo.toApproveRepo.db.Shrink()
|
|
}
|