mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-15 09:53:47 +01:00
10 lines
257 B
Go
10 lines
257 B
Go
package upgrades
|
|
|
|
import "database/sql"
|
|
|
|
func init() {
|
|
upgrades[37] = upgrade{"Store timestamp for previous phone ping", func(tx *sql.Tx, ctx context) error {
|
|
_, err := tx.Exec(`ALTER TABLE "user" ADD COLUMN phone_last_pinged BIGINT`)
|
|
return err
|
|
}}
|
|
}
|