2020-07-10 14:56:45 +02:00
|
|
|
package upgrades
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
|
2020-07-10 15:35:38 +02:00
|
|
|
"maunium.net/go/mautrix/crypto/sql_store_upgrade"
|
2020-07-10 14:56:45 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
upgrades[16] = upgrade{"Add account_id to crypto store", func(tx *sql.Tx, c context) error {
|
2020-07-10 15:35:38 +02:00
|
|
|
return sql_store_upgrade.Upgrades[1](tx, c.dialect.String())
|
2020-07-10 14:56:45 +02:00
|
|
|
}}
|
|
|
|
}
|