mautrix-whatsapp/database/upgrades/2021-10-28-portal-relay-user.go
2021-10-28 13:57:15 +03:00

12 lines
253 B
Go

package upgrades
import (
"database/sql"
)
func init() {
upgrades[28] = upgrade{"Add relay user field to portal table", func(tx *sql.Tx, ctx context) error {
_, err := tx.Exec(`ALTER TABLE portal ADD COLUMN relay_user_id TEXT`)
return err
}}
}