Add command to disable bridging presence and read receipts

This commit is contained in:
Tulir Asokan
2020-07-10 14:53:18 +03:00
parent 4a673b92fa
commit 7eb4cfb946
5 changed files with 86 additions and 31 deletions

View File

@ -0,0 +1,12 @@
package upgrades
import (
"database/sql"
)
func init() {
upgrades[15] = upgrade{"Add enable_presence column for puppets", func(tx *sql.Tx, ctx context) error {
_, err := tx.Exec(`ALTER TABLE puppet ADD COLUMN enable_presence BOOLEAN NOT NULL DEFAULT true`)
return err
}}
}