Make bridging receipts togglable separately from presence

This commit is contained in:
Tulir Asokan
2020-07-10 16:26:55 +03:00
parent f40a91594d
commit b7275a763a
7 changed files with 70 additions and 31 deletions

View File

@ -0,0 +1,12 @@
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
}}
}