mautrix-whatsapp/database/upgrades/2021-10-21-add-whatsmeow-store.go

14 lines
285 B
Go
Raw Normal View History

2021-10-22 19:14:34 +02:00
package upgrades
import (
"database/sql"
"go.mau.fi/whatsmeow/store/sqlstore"
)
func init() {
upgrades[24] = upgrade{"Add whatsmeow state store", func(tx *sql.Tx, ctx context) error {
return sqlstore.Upgrades[0](tx, sqlstore.NewWithDB(ctx.db, ctx.dialect.String(), nil))
}}
}