mautrix-whatsapp/database/upgrades/2021-10-27-message-decryption-errors.go
2021-10-27 18:31:33 +03:00

12 lines
305 B
Go

package upgrades
import (
"database/sql"
)
func init() {
upgrades[27] = upgrade{"Add marker for WhatsApp decryption errors in message table", func(tx *sql.Tx, ctx context) error {
_, err := tx.Exec(`ALTER TABLE message ADD COLUMN decryption_error BOOLEAN NOT NULL DEFAULT false`)
return err
}}
}