You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
306 B

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()
}