0
0
Fork 1
mirror of https://github.com/tulir/mautrix-whatsapp synced 2024-12-18 19:44:36 +01:00
mautrix-whatsapp/database/upgrades/2020-07-10-x-custom-puppet-receipts-toggle.go

13 lines
282 B
Go
Raw Normal View History

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