mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-11-13 21:41:38 +01:00
12 lines
301 B
Go
12 lines
301 B
Go
package upgrades
|
|
|
|
import (
|
|
"database/sql"
|
|
)
|
|
|
|
func init() {
|
|
upgrades[8] = upgrade{"Add columns to store portal in filtering community meta", func(tx *sql.Tx, ctx context) error {
|
|
_, err := tx.Exec(`ALTER TABLE user_portal ADD COLUMN in_community BOOLEAN NOT NULL DEFAULT FALSE`)
|
|
return err
|
|
}}
|
|
}
|