mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-09-11 04:09:21 +02:00
14 lines
285 B
Go
14 lines
285 B
Go
|
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))
|
||
|
}}
|
||
|
}
|