mautrix-whatsapp/database/upgrades/2022-01-24-phone-last-seen-ts.go

11 lines
272 B
Go
Raw Normal View History

package upgrades
import "database/sql"
func init() {
upgrades[35] = upgrade{"Store approximate last seen timestamp of the main device", func(tx *sql.Tx, ctx context) error {
_, err := tx.Exec(`ALTER TABLE "user" ADD COLUMN phone_last_seen BIGINT`)
return err
}}
}