mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-11-16 23:11:47 +01:00
12 lines
282 B
Go
12 lines
282 B
Go
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
|
|
}}
|
|
}
|