forked from MirrorHub/mautrix-whatsapp
11 lines
272 B
Go
11 lines
272 B
Go
|
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
|
||
|
}}
|
||
|
}
|