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
}}
}

View File

@ -28,7 +28,7 @@ type upgrade struct {
fn upgradeFunc
}
const NumberOfUpgrades = 15
const NumberOfUpgrades = 16
var upgrades [NumberOfUpgrades]upgrade